diff options
author | Pouria Rezaei <Pouria.rz@outlook.com> | 2024-06-21 14:20:13 +0330 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2024-06-22 20:25:47 +0700 |
commit | abb4f730b62f1059d93a13e2ad89f3065f012fa3 (patch) | |
tree | 4f6ba208053cf8d0dfaac3478a5b839f60e09c39 /python/python3-tekore/python3-tekore.SlackBuild | |
parent | 2b48327cfef80920330619f46e42ee004f3f8e74 (diff) |
python/python3-tekore: Updated to 5.1.1.
Signed-off-by: Pouria Rezaei <Pouria.rz@outlook.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python/python3-tekore/python3-tekore.SlackBuild')
-rw-r--r-- | python/python3-tekore/python3-tekore.SlackBuild | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/python/python3-tekore/python3-tekore.SlackBuild b/python/python3-tekore/python3-tekore.SlackBuild index 44cc78b33a..96c33b3d27 100644 --- a/python/python3-tekore/python3-tekore.SlackBuild +++ b/python/python3-tekore/python3-tekore.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for python3-tekore -# Copyright 2019-2022 Pouria Rezaei <Pouria.rz@outlook.com> +# Copyright 2019-2024 Pouria Rezaei <Pouria.rz@outlook.com> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -27,7 +27,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=python3-tekore SRCNAM=tekore -VERSION=${VERSION:-4.3.0} +VERSION=${VERSION:-5.1.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -81,9 +81,11 @@ 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 {} \; -sed -i -e "s~.*scripts=glob.glob(\"Scripts/\*.py\"),~~" setup.py +PYVER=$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])') +export PYTHONPATH=/opt/python$PYVER/site-packages/ -python3 setup.py install --root=$PKG +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 |