aboutsummaryrefslogtreecommitdiff
path: root/python/msgpack-python/msgpack-python.SlackBuild
diff options
context:
space:
mode:
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 d783790164..86416425b9 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