fordon_greeman / pkger

Branch: 6649f5c
Switch branches/tags
main
theidioticdev cleanup: forgot to update readme a4d35d2 12d ago
30 lines · 670 B Rendered Raw Blame History
1 #+TITLE: pkger
2 #+AUTHOR: theidioticdev
3
4 pkger is a really unconventional pkg manager
5 it uses a suckless-like approach to installing pkgs by adding header files in =recipes/=
6 for example:
7 foo.h:
8 #+BEGIN_SRC c
9 #include "../recipe.h"
10 static const Repository foo =
11 {
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"
19 };
20 #+END_SRC
21
22 in recipe.h:
23 #+BEGIN_SRC c
24 #include "recipes/foo.h"
25
26 static const Repository REPOS[] =
27 {
28 foo,
29 };
30 #+END_SRC