| 1 | #+TITLE: pkger |
| 2 | #+AUTHOR: theidioticdev |
| 3 | |
| 4 | [[./assets/prev.png]] |
| 5 | |
| 6 | [WIP] |
| 7 | pkger is a really unconventional and bad pkg manager written in C |
| 8 | |
| 9 | pkger relies on a fakeroot env it initiates on first run =~/pkger_root= |
| 10 | and reads from that fakeroot recipes inside =~/pkger_root/etc/recipes= |
| 11 | to add recipes, you write for example =foo.build=: |
| 12 | #+BEGIN_SRC text |
| 13 | pkg_name = "foo" |
| 14 | pkg_ver = "0.0.1" |
| 15 | pkg_fetch = "wget https://example.com/bar/foo.tar.gz -P ~/pkger_root/tmp/build/foo" |
| 16 | pkg_build = "<command_to_build>" |
| 17 | pkg_install = "<command_to_install>" |
| 18 | pkg_uninstall = "<command_to_unins>" |
| 19 | #+END_SRC |
| 20 | |
| 21 | and to add dependencies, you write for example foo.deps: |
| 22 | #+BEGIN_SRC text |
| 23 | # dep1 |
| 24 | ! <command_to_get> |
| 25 | ! <command_to_build> |
| 26 | ! <command_to_install> |
| 27 | # and so on for other deps... |
| 28 | #+END_SRC |