diff options
Diffstat (limited to 'development/reuse-tool/reuse-tool.SlackBuild')
-rw-r--r-- | development/reuse-tool/reuse-tool.SlackBuild | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/development/reuse-tool/reuse-tool.SlackBuild b/development/reuse-tool/reuse-tool.SlackBuild index 96b3f6f7c1e6e..3a3d771c346cd 100644 --- a/development/reuse-tool/reuse-tool.SlackBuild +++ b/development/reuse-tool/reuse-tool.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for reuse-tool -# Copyright 2022 Vijay Marcel +# Copyright 2022-2023 Vijay Marcel # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=reuse-tool -VERSION=${VERSION:-1.0.0} +VERSION=${VERSION:-1.1.2} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -51,13 +51,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=native -pipe -O2 -fPIC" LIBDIRSUFFIX="64" else SLKCFLAGS="-O2" @@ -80,7 +80,8 @@ find -L . \ \( -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 --prefix=/usr --root=$PKG --optimize=1 +python3 -m build --wheel --no-isolation +python3 -m installer --destdir="$PKG" dist/*.whl 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 |