diff options
Diffstat (limited to 'python/python-ipcalc')
-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 e8520781a2..cb8bc405cc 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 |