Skip to content

Instantly share code, notes, and snippets.

Last active Jul 3, 2022
What would you like to do?
VoidLinux tips


Creating a package

Install dev tools:

sudo xbps-install -S xtools

Fetch the package repo:

git clone
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment