diff options
author | Larry Hajali <larryhaja@gmail.com> | 2015-01-01 07:22:59 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-01-01 07:22:59 +0700 |
commit | 29b4b8f46fd65c2b87c1589b18f9182bd819f405 (patch) | |
tree | 66564d3ed891508c7150dcd0c47f820e6ae58005 /python | |
parent | 7630b7ec7f46385df2547a3e3607081ba2d53275 (diff) |
python/python-sh: Updated for version 1.11.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python')
-rw-r--r-- | python/python-sh/README | 2 | ||||
-rw-r--r-- | python/python-sh/python-sh.SlackBuild | 20 | ||||
-rw-r--r-- | python/python-sh/python-sh.info | 6 |
3 files changed, 16 insertions, 12 deletions
diff --git a/python/python-sh/README b/python/python-sh/README index 5d7ae670f6dd9..c1002feea642c 100644 --- a/python/python-sh/README +++ b/python/python-sh/README @@ -4,3 +4,5 @@ allows you to call any program as if it were a function. Eg: from sh import ifconfig print(ifconfig("wlan0")) + +Optional dependency: python3 diff --git a/python/python-sh/python-sh.SlackBuild b/python/python-sh/python-sh.SlackBuild index f79cd4519db1d..61c0b9ff7849c 100644 --- a/python/python-sh/python-sh.SlackBuild +++ b/python/python-sh/python-sh.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for python-sh -# Copyright 2012-2013 Larry Hajali <larryhaja[at]gmail[dot]com> +# Copyright 2012-2015 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-sh -VERSION=${VERSION:-1.09} +VERSION=${VERSION:-1.11} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -50,20 +50,22 @@ tar xvf $CWD/${PRGNAM/python-/}-$VERSION.tar.gz cd ${PRGNAM/python-/}-$VERSION chown -R root:root . find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \ - -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; python setup.py install --root=$PKG +if $(python3 -c 'import os' 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 mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a \ - AUTHORS.md LICENSE.txt PKG-INFO README.md \ - $PKG/usr/doc/$PRGNAM-$VERSION +cp -a AUTHORS.md LICENSE.txt PKG-INFO README.md $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install diff --git a/python/python-sh/python-sh.info b/python/python-sh/python-sh.info index f6ab6540fe43f..bfe76e9c23ed4 100644 --- a/python/python-sh/python-sh.info +++ b/python/python-sh/python-sh.info @@ -1,8 +1,8 @@ PRGNAM="python-sh" -VERSION="1.09" +VERSION="1.11" HOMEPAGE="http://amoffat.github.com/sh/index.html" -DOWNLOAD="http://pypi.python.org/packages/source/s/sh/sh-1.09.tar.gz" -MD5SUM="b68a2f91de880dce042d4f03ec9e0f47" +DOWNLOAD="http://pypi.python.org/packages/source/s/sh/sh-1.11.tar.gz" +MD5SUM="7af8df6c92d29ff927b6db0146bddec3" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" |