diff options
author | Arn0 <yth@ythogtha.org> | 2023-07-04 15:19:33 +0200 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-07-05 23:46:29 +0700 |
commit | d1ba014fcde564e45be0ff03ac5355715d2b69f5 (patch) | |
tree | c82292b2790cc8a21f1a8e2478373eeecd4ca525 /development/zope.interface/zope.interface.SlackBuild | |
parent | 0daf86d737c4ad07d2f86a09e7b834a7a89e47e2 (diff) |
development/zope.interface: drops python2
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/zope.interface/zope.interface.SlackBuild')
-rw-r--r-- | development/zope.interface/zope.interface.SlackBuild | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/development/zope.interface/zope.interface.SlackBuild b/development/zope.interface/zope.interface.SlackBuild index 29168a6b4c60c..d379dcc7bece1 100644 --- a/development/zope.interface/zope.interface.SlackBuild +++ b/development/zope.interface/zope.interface.SlackBuild @@ -27,7 +27,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=zope.interface VERSION=${VERSION:-6.0} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -57,21 +57,16 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xzvf $CWD/$PRGNAM-$VERSION.tar.gz +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ -o -perm 511 \) -exec chmod 755 {} \; -o \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -python setup.py install --root=$PKG - -# Python 3 support. -if $(python3 -c 'import sys' 2>/dev/null); then - python3 setup.py install --root=$PKG -fi +python3 setup.py install --root=$PKG 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 |