diff options
Diffstat (limited to 'graphics/imv/imv.SlackBuild')
-rw-r--r-- | graphics/imv/imv.SlackBuild | 28 |
1 files changed, 21 insertions, 7 deletions
diff --git a/graphics/imv/imv.SlackBuild b/graphics/imv/imv.SlackBuild index cabfcf4af3..51a2f1d939 100644 --- a/graphics/imv/imv.SlackBuild +++ b/graphics/imv/imv.SlackBuild @@ -6,6 +6,18 @@ # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. +# 20240318 bkw: +# - update for v4.5.0. +# - upstream now has tagged releases, no more commit hash filenames. +# - libjxl is now supported, add to README and slack-desc. +# - note: libnsgif < 1.0.0 is required for build. no problem we have +# 0.2.1, but if libnsgif ever gets updated to 1.0.0, this will need +# fixing. + +# 20230901 bkw: +# - update for v4.4.0. +# - new homepage and git repo, fugly tarball filename. + # 20210909 bkw: # - update for v4.3.0. # - upstream switched to meson, can't build old versions with this script. @@ -18,7 +30,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=imv -VERSION=${VERSION:-4.3.0} +VERSION=${VERSION:-4.5.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -59,12 +71,12 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz -cd $PRGNAM-$VERSION +rm -rf $PRGNAM-v$VERSION +tar xvf $CWD/$PRGNAM-v$VERSION.tar.gz || tar xvf $CWD/v$VERSION.tar.gz +cd $PRGNAM-v$VERSION chown -R root:root . -find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ - \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+ +find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} + -o \ + \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} + # meson takes an option to say where to install the config file, but # it doesn't actually change where the binary looks for it. @@ -114,15 +126,17 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install # update slack-desc to say which optional deps are included -F=no; G=no; H=no +F=no; G=no; H=no; J=no ldd $PKG/usr/bin/$PRGNAM-x11 > lddtmp grep -q 'libfreeimage' lddtmp && F=yes grep -q 'libnsgif' lddtmp && G=yes grep -q 'libheif' lddtmp && H=yes +grep -q 'libjxl' lddtmp && J=yes sed -e "s,@F@,$F," \ -e "s,@G@,$G," \ -e "s,@H@,$H," \ + -e "s,@J@,$J," \ $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh |