diff options
Diffstat (limited to 'python/python3-xapp/python3-xapp.SlackBuild')
| -rw-r--r-- | python/python3-xapp/python3-xapp.SlackBuild | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/python/python3-xapp/python3-xapp.SlackBuild b/python/python3-xapp/python3-xapp.SlackBuild index 97036a7f44..1a718e7e4d 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,10 +27,11 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=python3-xapp -VERSION=${VERSION:-2.2.2} +VERSION=${VERSION:-3.0.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} + ARCH=noarch if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then @@ -49,16 +51,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 +76,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 |
