diff options
Diffstat (limited to 'python/python-magic/python-magic.SlackBuild')
-rw-r--r-- | python/python-magic/python-magic.SlackBuild | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/python/python-magic/python-magic.SlackBuild b/python/python-magic/python-magic.SlackBuild index aea733d41b7f2..433f71f9ffaa5 100644 --- a/python/python-magic/python-magic.SlackBuild +++ b/python/python-magic/python-magic.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for python-magic -# Copyright 2009-2015 Larry Hajali <larryhaja[at]gmail[dot]com> +# Copyright 2009-2016 Larry Hajali <larryhaja[at]gmail[dot]com> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=python-magic -VERSION=${VERSION:-0.4.10} +VERSION=${VERSION:-0.4.12} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -57,13 +57,17 @@ find -L . \ python setup.py install --root=$PKG +# Install for python3. Default is no. +if [ "${PYTHON3:-no}" == "yes" ]; then + rm -rf build + 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 mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a PKG-INFO $PKG/usr/doc/$PRGNAM-$VERSION -cat $CWD/README.md > $PKG/usr/doc/$PRGNAM-$VERSION/README.md -cat $CWD/LICENSE > $PKG/usr/doc/$PRGNAM-$VERSION/LICENSE +cp -a LICENSE README.md $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |