aboutsummaryrefslogtreecommitdiff
path: root/network/Pafy/Pafy.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/Pafy/Pafy.SlackBuild')
-rw-r--r--network/Pafy/Pafy.SlackBuild16
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