cleanup: forgot to update readme
Browse files
+21 −21 readme.org
| @@ -2,29 +2,29 @@ | ||
| 2 | 2 | #+AUTHOR: theidioticdev |
| 3 | 3 | |
| 4 | 4 | pkger is a really unconventional pkg manager |
| 5 | -it uses a suckless-like approach to installing pkgs by editiing =repos.h= like this | |
| 6 | - | |
| 5 | +it uses a suckless-like approach to installing pkgs by adding header files in =recipes/= | |
| 6 | +for example: | |
| 7 | +foo.h: | |
| 7 | 8 | #+BEGIN_SRC c |
| 8 | - static const Repository REPOS[] = | |
| 9 | + #include "../recipe.h" | |
| 10 | + static const Repository foo = | |
| 9 | 11 | { |
| 10 | - /* add your repos here... */ | |
| 11 | - { | |
| 12 | - .name = "sfetch", | |
| 13 | - .url = "https://codeberg.org/theidioticdev/sfetch", | |
| 14 | - .fetchCmd = "git clone", | |
| 15 | - /* command repo dir" */ | |
| 16 | - .fetchFmt = "%s %s %s", | |
| 17 | - .buildCmd = "./build", | |
| 18 | - .installCmd = "./build --install", | |
| 19 | - .uninstallCmd = "./build --uninstall"}, | |
| 20 | - { | |
| 21 | - .name = "guix", | |
| 22 | - .url = "https://guix.gnu.org/install.sh", | |
| 23 | - .fetchFmt = "%s %s -P %s", | |
| 24 | - .fetchCmd = "wget", | |
| 25 | - .buildCmd = "chmod +x install.sh", | |
| 26 | - .installCmd = "./install.sh", | |
| 27 | - .uninstallCmd = "./install.sh --uninstall"} | |
| 12 | + .name = "foo", | |
| 13 | + .url = "https://github.com/bar/foo", | |
| 14 | + .fetchCmd = "git clone", | |
| 15 | + .fetchFmt = "%s %s %s", | |
| 16 | + .buildCmd = "make", | |
| 17 | + .installCmd = "sudo cp foo /usr/local/bin/foo", | |
| 18 | + .uninstallCmd = "sudo foo /usr/local/bin/foo" | |
| 28 | 19 | }; |
| 20 | +#+END_SRC | |
| 21 | + | |
| 22 | +in recipe.h: | |
| 23 | +#+BEGIN_SRC c | |
| 24 | + #include "recipes/foo.h" | |
| 29 | 25 | |
| 26 | + static const Repository REPOS[] = | |
| 27 | + { | |
| 28 | + foo, | |
| 29 | + }; | |
| 30 | 30 | #+END_SRC |