Files
voculinux/packaging/void/container-build.sh
T
soubarnak 1d8b07727e feat(void): add xbps template for python3-pywhispercpp
Spec #16 ticket #26: Void template for the whisper.cpp Python binding,
built from the pinned 1.5.0 sdist with the Vulkan backend (default-on
option), shared libraries, and portable CPU flags. Includes the podman
build/smoke harness, pinned base-image pins, and offline policy tests.

Refs: #26
2026-11-06 00:04:47 +05:30

25 lines
836 B
Bash
Executable File

#!/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"