diff options
Diffstat (limited to 'python/boolean-py')
-rw-r--r-- | python/boolean-py/boolean-py.SlackBuild | 23 | ||||
-rw-r--r-- | python/boolean-py/boolean-py.info | 6 |
2 files changed, 13 insertions, 16 deletions
diff --git a/python/boolean-py/boolean-py.SlackBuild b/python/boolean-py/boolean-py.SlackBuild index cf8c334d95..224d9c0686 100644 --- a/python/boolean-py/boolean-py.SlackBuild +++ b/python/boolean-py/boolean-py.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for boolean-py -# Copyright 2022 Vijay Marcel +# Copyright 2022-2025 Vijay Marcel # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=boolean-py SRCNAM=boolean.py -VERSION=${VERSION:-4.0} +VERSION=${VERSION:-5.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -39,9 +39,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 @@ -52,13 +49,13 @@ PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i586" ]; then - SLKCFLAGS="-O2 -march=i586 -mtune=i686" + SLKCFLAGS="-march=i586 -mtune=i686 -pipe -O2 -fPIC" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" + SLKCFLAGS="-march=i686 -mtune=i686 -pipe -O2 -fPIC" LIBDIRSUFFIX="" elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" + SLKCFLAGS="-march=x86-64 -mtune=generic -pipe -O2 -fPIC" LIBDIRSUFFIX="64" else SLKCFLAGS="-O2" @@ -77,17 +74,17 @@ cd $SRCNAM-$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 \ + -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 {} \; + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+ -python3 setup.py install --prefix=/usr --root=$PKG --optimize=1 +CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS" python3 setup.py install --prefix=/usr --root=$PKG --optimize=1 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 + | cut -f 1 -d : | xargs strip --strip-unneeded --remove-section=.comment --remove-section=.note 2> /dev/null || true mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a docs CHANGELOG.rst LICENSE.txt README.rst $PKG/usr/doc/$PRGNAM-$VERSION +cp -av docs CHANGELOG.rst LICENSE.txt README.rst $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install diff --git a/python/boolean-py/boolean-py.info b/python/boolean-py/boolean-py.info index 2056787b6f..55b68624d4 100644 --- a/python/boolean-py/boolean-py.info +++ b/python/boolean-py/boolean-py.info @@ -1,8 +1,8 @@ PRGNAM="boolean-py" -VERSION="4.0" +VERSION="5.0" HOMEPAGE="https://github.com/bastikr/boolean.py" -DOWNLOAD="https://github.com/bastikr/boolean.py/archive/v4.0/boolean.py-4.0.tar.gz" -MD5SUM="4c73209542bc328e96b5b427e5f55bec" +DOWNLOAD="https://github.com/bastikr/boolean.py/archive/v5.0/boolean.py-5.0.tar.gz" +MD5SUM="d551d6bedc9ac83bf1e7b586280a68b8" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" |