#!/bin/sh # Builder-side half of packaging/void/build.sh. Runs inside the pinned Void # container as the unprivileged builder user (xbps-src refuses root). # # Not executed directly: build.sh mounts the repo's srcpkgs next to this # file, copies it into the container, and runs it after cloning # void-packages at the pinned commit. PKGNAME and XBPS_ARGS arrive via the # environment. Keeping this a real file (instead of an inline `sh -c` # string) means normal quoting, heredocs, and shellcheck apply. set -eu export HOME=/home/builder export PATH=/usr/bin:/bin:/usr/sbin:/sbin cd /void-packages echo "== xlint $PKGNAME" xlint "srcpkgs/$PKGNAME/template" echo "== show-options $PKGNAME" ./xbps-src show-options "$PKGNAME" || true echo "== xbps-src $XBPS_ARGS $PKGNAME" # shellcheck disable=SC2086 ./xbps-src $XBPS_ARGS "$PKGNAME"