From d8362b085a2f4ab9a5ce8a61d26906736813a435 Mon Sep 17 00:00:00 2001 From: Benjamin Trigona-Harany Date: Sat, 17 Mar 2018 19:58:57 -0700 Subject: python/affine: Updated for version 2.2.0. --- python/affine/affine.SlackBuild | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'python/affine/affine.SlackBuild') diff --git a/python/affine/affine.SlackBuild b/python/affine/affine.SlackBuild index 6434fc1a454c6..c54df83fdc7c2 100644 --- a/python/affine/affine.SlackBuild +++ b/python/affine/affine.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for affine -# Copyright 2014 Benjamin Trigona-Harany +# Copyright 2014-2018 Benjamin Trigona-Harany # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=affine -VERSION=${VERSION:-2.1.0} +VERSION=${VERSION:-2.2.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -70,12 +70,17 @@ find -L . \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; python setup.py install --root=$PKG +if $(python3 -c 'import sys' 2>/dev/null); then + python3 setup.py install --root=$PKG +fi -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 -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a README.rst $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + README.rst \ + $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install -- cgit v1.2.3