From a5a678f07df655bc13cf3b69f4981076d911ee26 Mon Sep 17 00:00:00 2001 From: Lockywolf Date: Thu, 30 Nov 2023 22:42:32 +0700 Subject: python/python3-xkeysnail: Update dependency. Signed-off-by: Willy Sudiarto Raharjo --- python/python3-xkeysnail/python3-xkeysnail.SlackBuild | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'python/python3-xkeysnail/python3-xkeysnail.SlackBuild') diff --git a/python/python3-xkeysnail/python3-xkeysnail.SlackBuild b/python/python3-xkeysnail/python3-xkeysnail.SlackBuild index 807a948cb1..94b388e26a 100644 --- a/python/python3-xkeysnail/python3-xkeysnail.SlackBuild +++ b/python/python3-xkeysnail/python3-xkeysnail.SlackBuild @@ -48,6 +48,23 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +elif [ "$ARCH" = "aarch64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + set -e rm -rf $PKG @@ -63,6 +80,7 @@ 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 --root=$PKG mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -- cgit v1.2.3