]> git.99rst.org Git - openwrt-packages.git/commitdiff
imagemagick: add test-version.sh version override
authorAlexandru Ardelean <redacted>
Wed, 5 Aug 2026 06:51:17 +0000 (09:51 +0300)
committerAlexandru Ardelean <redacted>
Fri, 7 Aug 2026 08:27:13 +0000 (11:27 +0300)
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 <redacted>
multimedia/imagemagick/test-version.sh [new file with mode: 0755]

diff --git a/multimedia/imagemagick/test-version.sh b/multimedia/imagemagick/test-version.sh
new file mode 100755 (executable)
index 0000000..0e433ec
--- /dev/null
@@ -0,0 +1,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
git clone https://git.99rst.org/PROJECT