diff options
author | Dimitris Zlatanidis <d.zlatanidis@gmail.com> | 2015-06-02 04:23:03 +0300 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-06-07 22:09:53 +0700 |
commit | 3423f9942e0af21b7af9182f4124320c88da2a7a (patch) | |
tree | ea4a02b8bfd89e5f13d4bfb9842fc5d80169cf9f /network/Pafy/Pafy.SlackBuild | |
parent | 808531989804a7069db703ec853a078f9685227e (diff) |
network/Pafy: Updated for version 0.3.74.
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
Diffstat (limited to 'network/Pafy/Pafy.SlackBuild')
-rw-r--r-- | network/Pafy/Pafy.SlackBuild | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/network/Pafy/Pafy.SlackBuild b/network/Pafy/Pafy.SlackBuild index 8b1ca1a813701..58a473585895f 100644 --- a/network/Pafy/Pafy.SlackBuild +++ b/network/Pafy/Pafy.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for Pafy -# Copyright 2014 Dimitris Zlatanidis Greece-Orestiada +# Copyright 2014-2015 Dimitris Zlatanidis Orestiada, Greece # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,7 +24,8 @@ PRGNAM=Pafy -VERSION=${VERSION:-0.3.72} +SRCNAM=${PRGNAM,,} +VERSION=${VERSION:-0.3.74} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -60,9 +61,9 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz -cd $PRGNAM-$VERSION +rm -rf $SRCNAM-$VERSION +tar xvf $CWD/$SRCNAM-$VERSION.tar.gz +cd $SRCNAM-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -72,6 +73,11 @@ find -L . \ 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 + 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 |