aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordacctal <dacctal@symlinx.net>2026-05-02 09:02:46 +0000
committerdacctal <dacctal@symlinx.net>2026-05-02 09:02:46 +0000
commit47652687bcf1e02eb5503a6223b16238d4d6d161 (patch)
tree4d2dc6496353f8954a73822769bd67d90a474c9c
parent44eb727dc537403be092326639a5b7c6d7182146 (diff)
fixed like half of everything idk, you can install stuff now
-rw-r--r--README.md6
-rw-r--r--assets/logo.pngbin30354 -> 0 bytes
-rw-r--r--src/create_pkg.cc11
-rw-r--r--src/install_pkg.cc3
4 files changed, 13 insertions, 7 deletions
diff --git a/README.md b/README.md
index 13fef95..835726b 100644
--- a/README.md
+++ b/README.md
@@ -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
deleted file mode 100644
index 6bea18c..0000000
--- a/assets/logo.png
+++ /dev/null
Binary files differ
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) {