summaryrefslogtreecommitdiffstats
path: root/sound/squeezelite/test-version.sh
blob: 4dffff70af03aa00e7dfc2c5d83117a4c4a2483d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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