diff options
Diffstat (limited to 'python/python-qrcode')
| -rw-r--r-- | python/python-qrcode/python-qrcode.SlackBuild | 13 | ||||
| -rw-r--r-- | python/python-qrcode/python-qrcode.info | 8 |
2 files changed, 8 insertions, 13 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 diff --git a/python/python-qrcode/python-qrcode.info b/python/python-qrcode/python-qrcode.info index cb555473d4..730e54f415 100644 --- a/python/python-qrcode/python-qrcode.info +++ b/python/python-qrcode/python-qrcode.info @@ -1,10 +1,10 @@ PRGNAM="python-qrcode" -VERSION="7.4.2" +VERSION="8.0" HOMEPAGE="https://github.com/lincolnloop/python-qrcode" -DOWNLOAD="https://github.com/lincolnloop/python-qrcode/archive/v7.4.2/python-qrcode-7.4.2.tar.gz" -MD5SUM="43a326d23ced03ad6500418451456bfb" +DOWNLOAD="https://github.com/lincolnloop/python-qrcode/archive/v8.0/python-qrcode-8.0.tar.gz" +MD5SUM="d4e5aa1795a50c07bc67965313a7684d" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="python3-pypng" +REQUIRES="python3-pypng python3-wheel python3-poetry-core" MAINTAINER="Willy Sudiarto Raharjo" EMAIL="willysr@slackbuilds.org" |
