aboutsummaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorLockywolf <for_sbo.python3-xkeysnail_2023-07-04@lockywolf.net>2023-11-30 22:42:32 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-11-30 23:07:53 +0700
commita5a678f07df655bc13cf3b69f4981076d911ee26 (patch)
tree3d9f4b9aa2f17ace23294d0e06c50e2b0815d404 /python
parent0ae2bab31e49ad9d53d7a58275d0c1c63eb834c8 (diff)
python/python3-xkeysnail: Update dependency.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python')
-rw-r--r--python/python3-xkeysnail/python3-xkeysnail.SlackBuild18
-rw-r--r--python/python3-xkeysnail/python3-xkeysnail.info2
2 files changed, 19 insertions, 1 deletions
diff --git a/python/python3-xkeysnail/python3-xkeysnail.SlackBuild b/python/python3-xkeysnail/python3-xkeysnail.SlackBuild
index 807a948cb11e..94b388e26a73 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
diff --git a/python/python3-xkeysnail/python3-xkeysnail.info b/python/python3-xkeysnail/python3-xkeysnail.info
index af0aab0619ae..bc93bf79eee3 100644
--- a/python/python3-xkeysnail/python3-xkeysnail.info
+++ b/python/python3-xkeysnail/python3-xkeysnail.info
@@ -5,6 +5,6 @@ DOWNLOAD="https://files.pythonhosted.org/packages/75/18/3256d5f82078c55d72c70db8
MD5SUM="141d5a7d87faff40881d7210ea51eb8e"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="python-evdev"
+REQUIRES="python-evdev python3-xlib"
MAINTAINER="Lockywolf"
EMAIL="for_sbo.python3-xkeysnail_2023-07-04@lockywolf.net"