aboutsummaryrefslogtreecommitdiff
path: root/python/python-qrcode/python-qrcode.SlackBuild
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-10-02 22:46:14 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-10-04 22:57:54 +0700
commit49807c9ca0c7a8a2b9dda2f576eade3bb610ef90 (patch)
treef7ce1333439443e78ab25d9146bee3e3e241195c /python/python-qrcode/python-qrcode.SlackBuild
parentd6769ba1838ddf735c1494dff7daa89cf446a196 (diff)
python/python-qrcode: Updated for version 8.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python/python-qrcode/python-qrcode.SlackBuild')
-rw-r--r--python/python-qrcode/python-qrcode.SlackBuild13
1 files changed, 4 insertions, 9 deletions
diff --git a/python/python-qrcode/python-qrcode.SlackBuild b/python/python-qrcode/python-qrcode.SlackBuild
index b7153c03cf..72688e156b 100644
--- a/python/python-qrcode/python-qrcode.SlackBuild
+++ b/python/python-qrcode/python-qrcode.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for python-qrcode
-# Copyright 2015-2023 Willy Sudiarto Raharjo <willysr@slackbuilds.org>
+# Copyright 2015-2024 Willy Sudiarto Raharjo <willysr@slackbuilds.org>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=python-qrcode
-VERSION=${VERSION:-7.4.2}
+VERSION=${VERSION:-8.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -76,18 +76,13 @@ 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 {} \;
-# Set man directory
-sed -i "s|share/man/man1|man/man1|" setup.py
+python3 -m build --wheel --no-isolation
-python setup.py install --root=$PKG
-python3 setup.py install --root=$PKG
+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
-find $PKG/usr/man -type f -exec gzip -9 {} \;
-for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
-
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a *.rst LICENSE $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild