XBPS
Short guide on the Void Linux package repository
Void provides a comprehensive manual on how to work with the source packages. This guide is focused on a small subset of tasks I often do myself.
#Prerequisites
- Clone the
void-packages
repository and do the initial bootstrap:
$ git clone git://github.com/void-linux/void-packages.git
$ cd void-packages
$ ./xbps-src binary-bootstrap
- Install the
xtools
package:
$ xbps-install -S xtools
- Install and setup GitHub CLI:
$ xbps-install -S github-cli
$ gh auth login
#Updating an outdated package
- Update your local repository:
$ git pull
- Make changes to package template in a new git branch (most of the time you
only need to update the
version
):
$ git checkout -b package-name
$ vim srcpkgs/package-name/template
- Update the checksum:
$ xgensum -f -i package-name
- Lint the template for possible errors:
$ xlint package-name
- Build and install the updated package locally:
$ ./xbps-src pkg package-name
$ xi package-name
- Test the package to make sure it works;
- Generate a commit message for the update:
$ xbump package-name
- Create a PR:
$ gh pr create