fordon_greeman / pkger

an unconventional ports-like package manager written in C

Branch: 05a5a58
Switch branches/tags
main
Go to file New pull request
Clone
Clone with HTTPS
theidioticdev cleanup: fix todo Latest commit 05a5a58 12d ago
recipes feat: use tsoding's nob.h, split repos.h into separate recipes 12d ago
LICENSE forgot to add license 28d ago
nob feat: use tsoding's nob.h, split repos.h into separate recipes 12d ago
nob.c feat: use tsoding's nob.h, split repos.h into separate recipes 12d ago
nob.h feat: use tsoding's nob.h, split repos.h into separate recipes 12d ago
pkger feat: use tsoding's nob.h, split repos.h into separate recipes 12d ago
pkger.c feat: use tsoding's nob.h, split repos.h into separate recipes 12d ago
readme.org cleanup: forgot to update readme 12d ago
recipe.h feat: use tsoding's nob.h, split repos.h into separate recipes 12d ago
repos.h feat: use tsoding's nob.h, split repos.h into separate recipes 12d ago
TODO.org cleanup: fix todo 12d ago

readme.org

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,
  };