aboutsummaryrefslogtreecommitdiff
path: root/python/msgpack-python/msgpack-python.SlackBuild
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-05-26 11:03:39 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-05-26 11:03:39 +0700
commitfc1c13d588838d5369480ba5b852e3ef5659776b (patch)
tree14453474a01a5a97747ad5622bddc62d37e62691 /python/msgpack-python/msgpack-python.SlackBuild
parent4851aa9bab3ea5b13300609dcd23b91d0abbb58e (diff)
python/msgpack-python: Updated for version 1.0.2.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python/msgpack-python/msgpack-python.SlackBuild')
-rw-r--r--python/msgpack-python/msgpack-python.SlackBuild10
1 files changed, 3 insertions, 7 deletions
diff --git a/python/msgpack-python/msgpack-python.SlackBuild b/python/msgpack-python/msgpack-python.SlackBuild
index d7837901640b0..86416425b9f21 100644
--- a/python/msgpack-python/msgpack-python.SlackBuild
+++ b/python/msgpack-python/msgpack-python.SlackBuild
@@ -24,7 +24,7 @@
PRGNAM=msgpack-python
SRCNAM=$(echo $PRGNAM | cut -c1-7)
-VERSION=${VERSION:-0.5.6}
+VERSION=${VERSION:-1.0.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -71,17 +71,13 @@ find -L . \
-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
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a README.rst COPYING PKG-INFO $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a README.md COPYING PKG-INFO $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install