#!/bin/bash # Compile the pinned sources without installing or stopping audio services. set -euo pipefail PACKAGE_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")/.." && pwd) BUILD_DIR=$(mktemp -d /tmp/radxa-build-check.XXXXXX) echo "Build check directory: $BUILD_DIR" git clone -q --branch 1.2.8 "$PACKAGE_DIR/sources/nqptp-1.2.8.bundle" "$BUILD_DIR/nqptp" git clone -q --branch 5.5.2 "$PACKAGE_DIR/sources/shairport-sync-5.5.2.bundle" "$BUILD_DIR/shairport-sync" ( cd "$BUILD_DIR/nqptp" autoreconf -fi ./configure --prefix=/usr/local --with-systemd-startup --with-systemdsystemunitdir=/etc/systemd/system make -j 1 ./nqptp -V ) ( cd "$BUILD_DIR/shairport-sync" autoreconf -fi ./configure --prefix=/usr/local --sysconfdir=/etc --with-alsa --with-soxr \ --with-avahi --with-ssl=openssl --with-systemd-startup \ --with-systemdsystemunitdir=/etc/systemd/system --with-airplay-2 make -j 1 ./shairport-sync -V ) echo "Sources compiled successfully; no installed services were modified. Build tree: $BUILD_DIR"