fordon_greeman / pkger

Branch: 05a5a58
Switch branches/tags
main
theidioticdev cleanup: forgot to update readme a4d35d2 13d ago
30 lines · 670 B Code Raw Blame History

pkger

pkger is a really unconventional pkg manager it uses a suckless-like approach to installing pkgs by adding header files in recipes/ for example: foo.h:

#include "../recipe.h"
static const Repository foo =
  {
    .name = "foo",
    .url = "https://github.com/bar/foo",
    .fetchCmd = "git clone",
    .fetchFmt = "%s %s %s",
    .buildCmd = "make",
    .installCmd = "sudo cp foo /usr/local/bin/foo",
    .uninstallCmd = "sudo foo /usr/local/bin/foo"
  };

in recipe.h:

#include "recipes/foo.h"

static const Repository REPOS[] =
  {
   foo,
  };