Skip to content

Instantly share code, notes, and snippets.

@noraj
Last active July 3, 2022 16:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save noraj/ba10acf45695cf00b4378254ebce5444 to your computer and use it in GitHub Desktop.
Save noraj/ba10acf45695cf00b4378254ebce5444 to your computer and use it in GitHub Desktop.
VoidLinux tips

References

Creating a package

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