aboutsummaryrefslogtreecommitdiff
path: root/python/python3-xapp/python3-xapp.SlackBuild
diff options
context:
space:
mode:
authorIsaac Yu <isaacyu@protonmail.com>2025-09-24 12:54:35 -0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2025-09-26 21:55:26 +0700
commitb2ff6e4ecb4ea809a7a044a880f642c4b98e3ebc (patch)
treef64e88f9f171110d1a9998714e29a671774091e6 /python/python3-xapp/python3-xapp.SlackBuild
parent660db1d8abdc2c4c955316f8923f2685832dfb4e (diff)
python/python3-xapp: Update for 2.4.2 (+new maintainer)
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python/python3-xapp/python3-xapp.SlackBuild')
-rw-r--r--python/python3-xapp/python3-xapp.SlackBuild21
1 files changed, 14 insertions, 7 deletions
diff --git a/python/python3-xapp/python3-xapp.SlackBuild b/python/python3-xapp/python3-xapp.SlackBuild
index 97036a7f44..9113745e03 100644
--- a/python/python3-xapp/python3-xapp.SlackBuild
+++ b/python/python3-xapp/python3-xapp.SlackBuild
@@ -2,8 +2,9 @@
# Slackware build script for python3-xapp
-# Copyright 2025 Olivier Brouckaert <olivier.b@i-services.be>
# Copyright 2021 Willy Sudiarto Raharjo <willysr@slackware-id.org>
+# Copyright 2025 Olivier Brouckaert <olivier.b@i-services.be>
+# Copyright 2025 Isaac Yu <isaacyu@protonmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -26,7 +27,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=python3-xapp
-VERSION=${VERSION:-2.2.2}
+VERSION=${VERSION:-2.4.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -49,16 +50,24 @@ cd $TMP
rm -rf $PRGNAM-$VERSION
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 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-python3 setup.py install --root=$PKG
+mkdir -p build
+cd build
+ CFLAGS="$SLKCFLAGS" \
+ CXXFLAGS="$SLKCFLAGS" \
+ meson .. \
+ --prefix=/usr \
+ --mandir=/usr/man \
+ --libdir=/usr/lib${LIBDIRSUFFIX}
+ "${NINJA:=ninja}"
+ DESTDIR=$PKG $NINJA install
+cd ..
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
@@ -66,8 +75,6 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a COPYING $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-find $PKG/usr/doc/$PRGNAM-$VERSION/ -type f -exec chmod 644 {} \;
-chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc