fordon_greeman / pkger

cleanup: forgot to update readme Browse files
theidioticdev committed 12d ago parent 02f8442 commit a4d35d25e49760f813a3b3f4f37abfc1a5d20232
Showing 1 changed file with 21 additions and 21 deletions. UnifiedSplit
+21 −21 readme.org
@@ -2,29 +2,29 @@
2 #+AUTHOR: theidioticdev 2 #+AUTHOR: theidioticdev
3 3
4 pkger is a really unconventional pkg manager 4 pkger is a really unconventional pkg manager
5 -it uses a suckless-like approach to installing pkgs by editiing =repos.h= like this 5 +it uses a suckless-like approach to installing pkgs by adding header files in =recipes/=
6 - 6 +for example:
7 +foo.h:
7 #+BEGIN_SRC c 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... */ 12 + .name = "foo",
11 - { 13 + .url = "https://github.com/bar/foo",
12 - .name = "sfetch", 14 + .fetchCmd = "git clone",
13 - .url = "https://codeberg.org/theidioticdev/sfetch", 15 + .fetchFmt = "%s %s %s",
14 - .fetchCmd = "git clone", 16 + .buildCmd = "make",
15 - /* command repo dir" */ 17 + .installCmd = "sudo cp foo /usr/local/bin/foo",
16 - .fetchFmt = "%s %s %s", 18 + .uninstallCmd = "sudo foo /usr/local/bin/foo"
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"}
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 #+END_SRC 30 #+END_SRC