diff options
author | Arn0 <yth@ythogtha.org> | 2023-03-03 14:39:55 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-03-04 08:06:37 +0700 |
commit | 56f7428cfb412b179d61b03019d539b8c8b137db (patch) | |
tree | 208b1ad172240e403e5af02570d25fc02bb3f8c7 /python/pypy/pypy.SlackBuild | |
parent | 002acb6951d4e253e9bf70fd700e76a48ef263d8 (diff) |
python/pypy: Updated for version 7.3.11, new maintainer.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python/pypy/pypy.SlackBuild')
-rw-r--r-- | python/pypy/pypy.SlackBuild | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/python/pypy/pypy.SlackBuild b/python/pypy/pypy.SlackBuild index 792f4c2673f96..02ecb1662dc9f 100644 --- a/python/pypy/pypy.SlackBuild +++ b/python/pypy/pypy.SlackBuild @@ -2,6 +2,7 @@ # Slackware build script for pypy +# Copyright 2022 Yth | Pont-en-Royans, France | yth@ythogtha.org # Copyright 2012-2017 Audrius Kažukauskas <audrius@neutrino.lt> # All rights reserved. # @@ -25,7 +26,8 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=pypy -VERSION=${VERSION:-5.9} +VERSION=${VERSION:-7.3.11} +SRCNAM=pypy2.7 BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -50,6 +52,7 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} +PARCH="32" if [ "$ARCH" = "i586" ]; then SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" @@ -59,6 +62,7 @@ elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" + PARCH="64" else SLKCFLAGS="-O2" LIBDIRSUFFIX="" @@ -69,9 +73,9 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION-linux_$ARCH-portable -tar xvf $CWD/$PRGNAM-$VERSION-linux_$ARCH-portable.tar.bz2 -cd $PRGNAM-$VERSION-linux_$ARCH-portable +rm -rf $SRCNAM-v$VERSION-linux$PARCH +tar xvf $CWD/$SRCNAM-v$VERSION-linux$PARCH.tar.bz2 +cd $SRCNAM-v$VERSION-linux$PARCH chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -79,9 +83,6 @@ 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 {} \; -# Use os.path.realpath to resolve symlink in the path. -sed -i 's/abspath/realpath/' bin/virtualenv-pypy - mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/$PRGNAM-$VERSION cp -a * $PKG/usr/lib${LIBDIRSUFFIX}/$PRGNAM-$VERSION @@ -89,7 +90,8 @@ cp -a * $PKG/usr/lib${LIBDIRSUFFIX}/$PRGNAM-$VERSION mkdir -p $PKG/usr/bin ( cd $PKG/usr/bin ln -sf ../lib${LIBDIRSUFFIX}/$PRGNAM-$VERSION/bin/pypy pypy - ln -sf ../lib${LIBDIRSUFFIX}/$PRGNAM-$VERSION/bin/virtualenv-pypy virtualenv-pypy + ln -sf ../lib${LIBDIRSUFFIX}/$PRGNAM-$VERSION/bin/pypy2 pypy2 + ln -sf ../lib${LIBDIRSUFFIX}/$PRGNAM-$VERSION/bin/pypy2.7 pypy2.7 ) mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION |