diff options
| -rw-r--r-- | README.md | 6 | ||||
| -rw-r--r-- | assets/logo.png | bin | 30354 -> 0 bytes | |||
| -rw-r--r-- | src/create_pkg.cc | 11 | ||||
| -rw-r--r-- | src/install_pkg.cc | 3 |
4 files changed, 13 insertions, 7 deletions
@@ -34,6 +34,12 @@ After compiling, run the following with root privilages: make install ``` +## Don't have root? +You can specify any install location with `PREFIX=<path>`: +``` +make install PREFIX="/path/to/install" +``` + # Usage ## Installing Packages ### Basic install diff --git a/assets/logo.png b/assets/logo.png Binary files differdeleted file mode 100644 index 6bea18c..0000000 --- a/assets/logo.png +++ /dev/null diff --git a/src/create_pkg.cc b/src/create_pkg.cc index 1792d24..4729923 100644 --- a/src/create_pkg.cc +++ b/src/create_pkg.cc @@ -23,14 +23,11 @@ Pkg create_pkg(std::string arg, const char* target) { if (arg.rfind("http", 0) == 0) { pkg.url = arg; pkg.name = name_from_url(arg); - } else if (std::filesystem::exists(arg) || arg == ".") { + } else if (arg == ".") { + std::cout << "this pkg is local" << std::endl; pkg.url = ""; - if (std::filesystem::exists(arg)) { - pkg.src = arg; - } else { - pkg.src = std::filesystem::current_path().string(); - } - pkg.name = name_from_url(arg); + pkg.src = std::filesystem::current_path().string(); + pkg.name = name_from_url(std::filesystem::current_path().string()); is_local = true; } else if (is_in_repos) { pkg.url = cached_repos[arg].source.value; diff --git a/src/install_pkg.cc b/src/install_pkg.cc index 2cf7193..0753606 100644 --- a/src/install_pkg.cc +++ b/src/install_pkg.cc @@ -13,13 +13,16 @@ void install_pkg(Pkg pkg) { std::cout << print_pkgit << "fetching source..." << std::endl; fetch_src(pkg); + std::cout << print_pkgit << "source fetched!" << std::endl; std::cout << print_pkgit << "building..." << std::endl; build(pkg); + std::cout << print_pkgit << "build complete!" << std::endl; std::cout << print_pkgit << "installing..." << std::endl; if (is_symlink_install) { link_install(pkg.src); } else { copy_install(pkg.src); } + std::cout << print_pkgit << "installed!" << std::endl; bool repo_exists = false; for (auto repo : cached_repos) { |
