diff options
author | Marcel Saegebarth <marc@mos6581.de> | 2015-01-27 00:22:32 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-01-27 06:42:45 +0700 |
commit | 9e1706fe739f25f7797d575cb68808e8676d1732 (patch) | |
tree | 13cae22327a1a21a4122cf2181d54f5330be71eb | |
parent | 57c0e909752d93fad6803bc287b2c629c92b939a (diff) |
python/python-ipcalc: Added python 3 support.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | python/python-ipcalc/python-ipcalc.SlackBuild | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/python/python-ipcalc/python-ipcalc.SlackBuild b/python/python-ipcalc/python-ipcalc.SlackBuild index e8520781a29e6..cb8bc405ccda1 100644 --- a/python/python-ipcalc/python-ipcalc.SlackBuild +++ b/python/python-ipcalc/python-ipcalc.SlackBuild @@ -27,7 +27,7 @@ PRGNAM=python-ipcalc SRCNAM=ipcalc VERSION=${VERSION:-1.1.3} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -74,9 +74,12 @@ find -L . \ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ -python setup.py build 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 |