From c364996aad535cae5e8af1f26da126f038366126 Mon Sep 17 00:00:00 2001 From: Levi Neely <141506390+lneely@users.noreply.github.com> Date: Thu, 15 Aug 2024 10:47:59 +0200 Subject: [PATCH] Aur pkg prep (#35) * version placeholder and makefile updates * fixes --- Makefile | 6 ++++++ cmd/pcloudcc/main.cpp | 6 ++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 20b6b41..02ccb68 100644 --- a/Makefile +++ b/Makefile @@ -11,4 +11,10 @@ clean: rm -rf lib/mbedtls-2.1.14/build rm -rf ./cmd/pcloudcc/build +install: + install -m 755 cmd/pcloudcc/build/pcloudcc /usr/bin/pcloudcc + install -m 755 cmd/pcloudcc/build/libpcloudcc_lib.so /usr/lib/libpcloudcc_lib.so +uninstall: + rm -f /usr/bin/pcloudcc + rm -f /usr/lib/libpcloudcc_lib.so diff --git a/cmd/pcloudcc/main.cpp b/cmd/pcloudcc/main.cpp index f737316..e6eaada 100644 --- a/cmd/pcloudcc/main.cpp +++ b/cmd/pcloudcc/main.cpp @@ -38,10 +38,12 @@ namespace po = boost::program_options; namespace ct = control_tools; namespace cc = console_client; -static std::string version = "2.0.1"; + +// TODO: a proper version string might be useful for debugging +static std::string version = "git-lneely"; int main(int argc, char **argv) { - std::cout << "pCloud console client v." << version << std::endl; + std::cout << "pCloud console client (" << version << ")" << std::endl; std::string username; std::string password; bool daemon = false;