summaryrefslogtreecommitdiffstats
path: root/libraries/qt-avif-image-plugin/qt-avif-image-plugin.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/qt-avif-image-plugin/qt-avif-image-plugin.SlackBuild')
-rw-r--r--libraries/qt-avif-image-plugin/qt-avif-image-plugin.SlackBuild28
1 files changed, 12 insertions, 16 deletions
diff --git a/libraries/qt-avif-image-plugin/qt-avif-image-plugin.SlackBuild b/libraries/qt-avif-image-plugin/qt-avif-image-plugin.SlackBuild
index 0d593da556..cc3bc23655 100644
--- a/libraries/qt-avif-image-plugin/qt-avif-image-plugin.SlackBuild
+++ b/libraries/qt-avif-image-plugin/qt-avif-image-plugin.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for qt-avif-image-plugin
-# Copyright 2023 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-avif-image-plugin
-VERSION=${VERSION:-0.7.0}
+VERSION=${VERSION:-0.8.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,20 @@ tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
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 ..
+cmake -B build -S $TMP/$PRGNAM-$VERSION \
+ -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 --build build
+DESTDIR=$PKG \
+QTDIR=$PKG/usr/lib$LIBDIRSUFFIX/qt5 \
+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