summaryrefslogtreecommitdiffstats
path: root/multimedia/imagemagick/test-version.sh
blob: 0e433ec829371442f3bcd074f48db255a15863c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

# shellcheck shell=busybox

case "$PKG_NAME" in
imagemagick)
	# PKG_VERSION is X.Y.Z.R but the binaries print X.Y.Z-R.
	magick -version | grep -F "$(echo "$PKG_VERSION" | sed 's/\.\([0-9]*\)$/-\1/')"
	;;
*)
	echo "Untested package: $PKG_NAME" >&2
	exit 1
	;;
esac