]> git.99rst.org Git - openwrt-packages.git/commitdiff
squeezelite: add version test override
authorKel Modderman <redacted>
Sat, 8 Aug 2026 10:46:57 +0000 (20:46 +1000)
committerAlexandru Ardelean <redacted>
Tue, 11 Aug 2026 06:25:18 +0000 (09:25 +0300)
The generic package test greps executable output for PKG_VERSION, which
cannot match here: PKG_VERSION separates the build number with a dot for
apk, while squeezelite reports it with a hyphen.

Derive the expected string from PKG_VERSION rather than hardcoding it, so
the check keeps working on later updates.

Signed-off-by: Kel Modderman <redacted>
sound/squeezelite/test-version.sh [new file with mode: 0644]

diff --git a/sound/squeezelite/test-version.sh b/sound/squeezelite/test-version.sh
new file mode 100644 (file)
index 0000000..4dffff7
--- /dev/null
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+# shellcheck shell=busybox
+
+# PKG_VERSION dots the build number for apk; squeezelite reports it hyphenated
+version=$(echo "$PKG_VERSION" | sed 's/\.\([^.]*\)$/-\1/')
+
+case "$PKG_NAME" in
+squeezelite-full | squeezelite-dynamic | squeezelite-custom)
+       squeezelite '-?' 2>&1 | grep -F "Squeezelite ${version},"
+       ;;
+*)
+       echo "Untested package: $PKG_NAME" >&2
+       exit 1
+       ;;
+esac
git clone https://git.99rst.org/PROJECT