mirror of
https://github.com/openwrt/packages.git
synced 2026-10-14 20:47:02 +04:00
zipmerge and zipcmp prints version on -V, but ziptool does not offer version number in any output. Co-authored-by: George Sapkin <george@sapk.in> Signed-off-by: Michael Heimpold <mhei@heimpold.de>
31 lines
375 B
Bash
Executable File
31 lines
375 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# shellcheck shell=busybox
|
|
|
|
case "$PKG_NAME" in
|
|
libzip-*)
|
|
# library packages
|
|
exit 0
|
|
;;
|
|
|
|
zipcmp)
|
|
zipcmp -V 2>&1 | grep -qF "libzip $PKG_VERSION"
|
|
exit 0
|
|
;;
|
|
|
|
zipmerge)
|
|
zipmerge -V 2>&1 | grep -qF "libzip $PKG_VERSION"
|
|
exit 0
|
|
;;
|
|
|
|
ziptool)
|
|
# does not provide -V or prints version on -h
|
|
exit 0
|
|
;;
|
|
|
|
*)
|
|
echo "Untested package: $PKG_NAME" >&2
|
|
exit 1
|
|
;;
|
|
esac
|