summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author B. Watson2024-03-18 08:40:42 +0100
committer Willy Sudiarto Raharjo2024-03-23 02:17:07 +0100
commitfe3c1904dde449bb016b07f27f5bc117eb209661 (patch)
treeb455dcd6e1f953c4a0689b634c93752110e5fffa
parent10fcce85ed0739c4a721fac29c1072b4c1e97b77 (diff)
downloadslackbuilds-fe3c1904dde449bb016b07f27f5bc117eb209661.tar.gz
graphics/imv: Updated for version 4.5.0, add libjxl support.
Signed-off-by: B. Watson <urchlay@slackware.uk> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--graphics/imv/README1
-rw-r--r--graphics/imv/imv.SlackBuild25
-rw-r--r--graphics/imv/imv.info6
-rw-r--r--graphics/imv/slack-desc2
4 files changed, 22 insertions, 12 deletions
diff --git a/graphics/imv/README b/graphics/imv/README
index 3d369fad5f..a1d5c75fb0 100644
--- a/graphics/imv/README
+++ b/graphics/imv/README
@@ -22,6 +22,7 @@ Optional dependencies (autodetected):
- FreeImage (support for GIF, RAW, PSD formats)
- libnsgif (support for GIF)
- libheif (support for HEIF/AVIF)
+- libjxl (support for JXL aka JPEG XL)
If you don't have at least one of FreeImage or libnsgif, imv won't
support GIF images at all.
diff --git a/graphics/imv/imv.SlackBuild b/graphics/imv/imv.SlackBuild
index 26045f8aa4..51a2f1d939 100644
--- a/graphics/imv/imv.SlackBuild
+++ b/graphics/imv/imv.SlackBuild
@@ -6,6 +6,14 @@
# 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.
@@ -22,8 +30,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=imv
-VERSION=${VERSION:-4.4.0}
-COMMIT=${COMMIT:-885e17397ac503de84723d4f0b1c97b1258548ab}
+VERSION=${VERSION:-4.5.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -64,12 +71,12 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$COMMIT
-tar xvf $CWD/$PRGNAM-$COMMIT.tar.gz || tar xvf $CWD/$COMMIT.tar.gz
-cd $PRGNAM-$COMMIT
+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.
@@ -119,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
diff --git a/graphics/imv/imv.info b/graphics/imv/imv.info
index 5123795e0c..1eb4aed8c8 100644
--- a/graphics/imv/imv.info
+++ b/graphics/imv/imv.info
@@ -1,8 +1,8 @@
PRGNAM="imv"
-VERSION="4.4.0"
+VERSION="4.5.0"
HOMEPAGE="https://sr.ht/~exec64/imv/"
-DOWNLOAD="https://git.sr.ht/~exec64/imv/archive/885e17397ac503de84723d4f0b1c97b1258548ab.tar.gz"
-MD5SUM="0ff4c876c2dc7b0f4035efa406230d1f"
+DOWNLOAD="https://git.sr.ht/~exec64/imv/archive/v4.5.0.tar.gz"
+MD5SUM="854614e252c58588e0fbf4a9f75a6b0d"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
diff --git a/graphics/imv/slack-desc b/graphics/imv/slack-desc
index a9ae922b5f..db04840f5a 100644
--- a/graphics/imv/slack-desc
+++ b/graphics/imv/slack-desc
@@ -13,7 +13,7 @@ imv: managers.
imv:
imv: Package built with support for:
imv:
-imv: FreeImage: @F@ libnsgif: @G@ libheif: @H@
+imv: FreeImage: @F@ libnsgif: @G@ libheif: @H@ libjxl: @J@
imv:
imv:
imv: