aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Šrejma <marek[at]modweb[dot]de>2024-02-22 21:39:49 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-02-24 15:34:49 +0700
commit628f31818b774bc621348473a15c0f0112d5079a (patch)
tree271cafa63f3c7c96124e12b5eadbc3bf712e6de1
parentdf18b434297f25ee156767e4ca26591ec2295fe4 (diff)
libraries/qt-jpegxl-image-plugin: Updated for version 0.6.0.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--libraries/qt-jpegxl-image-plugin/qt-jpegxl-image-plugin.SlackBuild33
-rw-r--r--libraries/qt-jpegxl-image-plugin/qt-jpegxl-image-plugin.info6
2 files changed, 19 insertions, 20 deletions
diff --git a/libraries/qt-jpegxl-image-plugin/qt-jpegxl-image-plugin.SlackBuild b/libraries/qt-jpegxl-image-plugin/qt-jpegxl-image-plugin.SlackBuild
index a173b8174a9d..70e57cf688d5 100644
--- a/libraries/qt-jpegxl-image-plugin/qt-jpegxl-image-plugin.SlackBuild
+++ b/libraries/qt-jpegxl-image-plugin/qt-jpegxl-image-plugin.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for qt-jpegxl-image-plugin
-# Copyright Marek Šrejma, <marek at modweb dot de>, Germany
+# Copyright 2023-2024 Marek Šrejma, <marek at modweb dot de>, Germany
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=qt-jpegxl-image-plugin
-VERSION=${VERSION:-0.4.3}
+VERSION=${VERSION:-0.6.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -38,9 +38,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -71,21 +68,23 @@ tar xvf $CWD/$PRGNAM-$VERSION.tar.?z*
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-mkdir build
-cd build
- cmake \
- -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
- -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
- -DCMAKE_BUILD_TYPE=Release ..
-
- make
- make install DESTDIR=$PKG QTDIR=$PKG/usr/lib$LIBDIRSUFFIX/qt5
-cd ..
+cmake -B build -S $TMP/$PRGNAM-$VERSION \
+ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
+ -DJPEGXL_ENABLE_PLUGINS:BOOL=ON \
+ -DBUILD_TESTING:BOOL=OFF \
+ -DJPEGXL_WARNINGS_AS_ERRORS:BOOL=OFF \
+ -DJPEGXL_ENABLE_SJPEG:BOOL=OFF \
+ -DCMAKE_INSTALL_PREFIX:PATH=/usr \
+ -DCMAKE_BUILD_TYPE=Release
+
+cmake --build build
+DESTDIR=$PKG cmake --install build
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | \
grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
diff --git a/libraries/qt-jpegxl-image-plugin/qt-jpegxl-image-plugin.info b/libraries/qt-jpegxl-image-plugin/qt-jpegxl-image-plugin.info
index a58815d807eb..823a10a7e006 100644
--- a/libraries/qt-jpegxl-image-plugin/qt-jpegxl-image-plugin.info
+++ b/libraries/qt-jpegxl-image-plugin/qt-jpegxl-image-plugin.info
@@ -1,8 +1,8 @@
PRGNAM="qt-jpegxl-image-plugin"
-VERSION="0.4.3"
+VERSION="0.6.0"
HOMEPAGE="https://github.com/novomesk/qt-jpegxl-image-plugin"
-DOWNLOAD="https://github.com/novomesk/qt-jpegxl-image-plugin/archive/refs/tags/v0.4.3/qt-jpegxl-image-plugin-0.4.3.tar.gz"
-MD5SUM="fec8f76137746a1fbc6cb5b212d32ac5"
+DOWNLOAD="https://github.com/novomesk/qt-jpegxl-image-plugin/archive/refs/tags/v0.6.0/qt-jpegxl-image-plugin-0.6.0.tar.gz"
+MD5SUM="119c1c15593286a8443933624e41bd4e"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="libjxl"