fordon_greeman / pkger

Branch: d579ee5
Switch branches/tags
main
theidioticdev fix readme d25be8c 1d ago
28 lines · 929 B Code Raw Blame History

pkger

[WIP]
pkger is a really unconventional and bad pkg manager written in C.
pkger relies on a fakeroot env it initiates (~/pkger_root) by running ./pkger init
(for now cp recipes/* ~/pkger_root/etc/recipes as i keep forgetting to add so :/)
and reads from that fakeroot recipes inside ~/pkger_root/etc/recipes
to add recipes, you write, for example, foo.build:

pkg_name      = "foo"
pkg_ver       = "0.0.1"
pkg_fetch     = "wget https://example.com/bar/foo.tar.gz -P ~/pkger_root/tmp/build/foo"
pkg_build     = "<command_to_build>"
pkg_install   = "<command_to_install>"
pkg_uninstall = "<command_to_unins>"

and to add dependencies, you write, for example, foo.deps:

# dep1
! <command_to_get>
! <command_to_build>
! <command_to_install>
# and so on for other deps...