- Templates: https://github.com/void-linux/void-packages
- Contributing rules : https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md
- Documentation : https://github.com/void-linux/void-packages/blob/master/Manual.md
Install dev tools:
sudo xbps-install -S xtools
Fetch the package repo:
git clone https://github.com/void-linux/void-packages
cd void-packages
Init. the dev. package env.:
./xbps-src binary-bootstrap
Create a new package template, this will create srcpkgs/<pkgname>/template
:
xnew <pkgname>
Control the checksum:
xgensum -f srcpkgs/<pkgname>/template
Lint the template:
xlint srcpkgs/<pkgname>/template
Build the package:
./xbps-src pkg <pkgname>
Test building for ARM:
$ ./xbps-src -a armv7l pkg <pkgname>
Install the package:
sudo xbps-install --repository=hostdir/binpkgs/ <pkgname>
# or
sudo xi <pkgname>