Files
Alexandru Ardelean 8e89b97254 imagemagick: add test-version.sh version override
The binaries print the version as X.Y.Z-R while PKG_VERSION is X.Y.Z.R,
so the generic per-executable version probe never matches and the job
fails. Add a test-version.sh override that greps for the dashed form,
mirroring the conversion the runtime test.sh already does.

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2026-08-07 11:27:13 +03:00

15 lines
275 B
Bash
Executable File

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