3 ms·
The easiest package format I've ever came across was the tgz format from Slackware. From what I remember, you just build and install your software in a fake roo
by bobajeff 3y ago
The easiest package format I've ever came across was the tgz format from Slackware. From what I remember, you just build and install your software in a fake root then tar gzip it up.
- steve_rambo 3y agoThis is because it doesn't do very much. Arch Linux's PKGBUILD and Alpine's APKBUILD are an excellent improvement on that, still very simple to use and learn. In most cases the source package consists of a single shell script (unlike Debian's splintered hell) where you have to define half a dozen fields and a couple of functions (build && install). I basically have to relearn Debian packaging from scratch every time I have to do that, but learn Alpine and/or Arch once and you're all set. https://gitlab.archlinux.org/archlinux/packaging/packages/mutt/-/blob/main/PKGBUILD https://gitlab.archlinux.org/archlinux/packaging/packages/mu... https://git.alpinelinux.org/aports/tree/community/mutt/APKBUILD?h=3.12-stable https://git.alpinelinux.org/aports/tree/community/mutt/APKBU...
- oneshtein 3y agoIt's the same process for all package builders: install build-time dependencies, unpack source archive with a program, configure it, build it, install it to a fake root, validate it, archive it to the package, sign it, then publish it to a repository, update repository index.