aboutsummaryrefslogtreecommitdiff
path: root/python/python-jsonrpclib/python-jsonrpclib.SlackBuild
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-01-04 08:19:56 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-01-06 06:43:39 +0700
commitbdd19f29696dc845c1a6d942970a7cedefbea943 (patch)
treeec2d150dec9e83d4d21686c5f5f586ccb854fd54 /python/python-jsonrpclib/python-jsonrpclib.SlackBuild
parentbb6badf9a52310c97b181b7adf3d833ff1732a42 (diff)
python/python-jsonrpclib: Updated for version 0.3.1.
This also add python3 support. Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python/python-jsonrpclib/python-jsonrpclib.SlackBuild')
-rw-r--r--python/python-jsonrpclib/python-jsonrpclib.SlackBuild10
1 files changed, 7 insertions, 3 deletions
diff --git a/python/python-jsonrpclib/python-jsonrpclib.SlackBuild b/python/python-jsonrpclib/python-jsonrpclib.SlackBuild
index e2fecf6b1c3a..d8e9d8720ab8 100644
--- a/python/python-jsonrpclib/python-jsonrpclib.SlackBuild
+++ b/python/python-jsonrpclib/python-jsonrpclib.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for python-jsonrpclib
-# Copyright 2016 Willy Sudiarto Raharjo <willysr@slackbuilds.org>
+# Copyright 2016-2018 Willy Sudiarto Raharjo <willysr@slackbuilds.org>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -24,7 +24,7 @@
PRGNAM=python-jsonrpclib
SRCNAM=jsonrpclib
-VERSION=${VERSION:-0.1.7}
+VERSION=${VERSION:-0.3.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -55,7 +55,7 @@ else
LIBDIRSUFFIX=""
fi
-set -e
+set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
@@ -72,6 +72,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