diff options
author | Larry Hajali <larryhaja@gmail.com> | 2016-07-30 09:31:26 -0700 |
---|---|---|
committer | David Spencer <idlemoor@slackbuilds.org> | 2016-08-05 18:10:51 +0100 |
commit | 3bbcfb4e6f838cda7a16037066965ac4effdb86d (patch) | |
tree | 26f21466fc4745e2560fc0af8eb494a6b240287e /python/python-magic/python-magic.SlackBuild | |
parent | 8a22677f62a2d2db0a3d28d0062e15fd7562c721 (diff) | |
download | slackbuilds-3bbcfb4e6f838cda7a16037066965ac4effdb86d.tar.gz |
python/python-magic: Updated for version 0.4.12
Signed-off-by: Larry Hajali <larryhaja[at]gmail[dot]com>
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 aea733d41b..433f71f9ff 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 |