diff options
author | Antonio Leal <antonio.leal@yahoo.com> | 2025-09-26 19:45:13 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2025-09-27 09:51:03 +0700 |
commit | 0ef006c374a7ff9be628798b1b02ee2a9cfd7bed (patch) | |
tree | 28fd8a77131b3d1bb50a3e3502131b1a5a21fcd0 /python/python3-gmpy2/python3-gmpy2.SlackBuild | |
parent | 67ba57247c481f1a067357c771271a935603d454 (diff) |
python/python3-gmpy2: Updated for version 2.2.1.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python/python3-gmpy2/python3-gmpy2.SlackBuild')
-rw-r--r-- | python/python3-gmpy2/python3-gmpy2.SlackBuild | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/python/python3-gmpy2/python3-gmpy2.SlackBuild b/python/python3-gmpy2/python3-gmpy2.SlackBuild index 3e01eb4902..55d4907194 100644 --- a/python/python3-gmpy2/python3-gmpy2.SlackBuild +++ b/python/python3-gmpy2/python3-gmpy2.SlackBuild @@ -2,6 +2,7 @@ # Slackware build script for python3-gmpy2 +# Copyright 2025 Antonio Leal, Porto Salvo, Oeiras, Portugal # Copyright 2019-2023, Alexander Verbovetsky, Moscow, Russia # All rights reserved. # @@ -26,7 +27,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=python3-gmpy2 SRCNAM=gmpy2 -VERSION=${VERSION:-2.1.5} +VERSION=${VERSION:-2.2.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -63,6 +64,8 @@ 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 {} \; +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 find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ @@ -70,7 +73,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION chmod 644 docs/* -cp -a README docs $PKG/usr/doc/$PRGNAM-$VERSION +cp -a README.rst docs $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |