diff options
author | Nikos Giotis <nikos.giotis@gmail.com> | 2018-02-13 16:39:59 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2018-02-17 07:42:55 +0700 |
commit | 5210399b24831d3168a517beba4757c3ffb45f34 (patch) | |
tree | 805636b3198b9d96e7595dc6a36ed17596ab22c8 /python/imagesize/imagesize.SlackBuild | |
parent | ef03b97f3c6292eee97065807ac89ae7a2f13f4f (diff) | |
download | slackbuilds-5210399b24831d3168a517beba4757c3ffb45f34.tar.gz |
python/imagesize: Add python3 support.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'python/imagesize/imagesize.SlackBuild')
-rw-r--r-- | python/imagesize/imagesize.SlackBuild | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/python/imagesize/imagesize.SlackBuild b/python/imagesize/imagesize.SlackBuild index 34a8c915cd..4b9a50d00f 100644 --- a/python/imagesize/imagesize.SlackBuild +++ b/python/imagesize/imagesize.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for imagesize -# Copyright 2017 Nikos Giotis <nikos.giotis@gmail.com> +# Copyright 2017,2018 Nikos Giotis <nikos.giotis@gmail.com>, Athens, GR # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,7 +24,7 @@ PRGNAM=imagesize VERSION=${VERSION:-0.7.1} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -71,6 +71,10 @@ find -L . \ 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 |