aboutsummaryrefslogtreecommitdiff
path: root/libraries/plyr/plyr.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/plyr/plyr.SlackBuild')
-rw-r--r--libraries/plyr/plyr.SlackBuild16
1 files changed, 12 insertions, 4 deletions
diff --git a/libraries/plyr/plyr.SlackBuild b/libraries/plyr/plyr.SlackBuild
index 6e21b88818d4..1e9df655c53f 100644
--- a/libraries/plyr/plyr.SlackBuild
+++ b/libraries/plyr/plyr.SlackBuild
@@ -2,7 +2,7 @@
#
# Slackware build script for plyr.
#
-# Copyright 2015 Edinaldo P. Silva, Rio de Janeiro, Brazil.
+# Copyright 2015-2018 Edinaldo P. Silva, Rio de Janeiro, Brazil.
# 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=plyr
-VERSION=${VERSION:-1.0.2}
+VERSION=${VERSION:-1.0.6}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -54,13 +54,16 @@ else
LIBDIRSUFFIX=""
fi
+SRCNAM=${SRCNAM:-python-glyr}
+
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
+mv $SRCNAM-$VERSION $PRGNAM-$VERSION
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@@ -71,11 +74,16 @@ find -L . \
python setup.py install --root=$PKG --optimize=1
+# Install python3 bindings for plyr. Default is no.
+if [ "${PYTHON3:-no}" == "yes" ]; 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 README.txt $PKG/usr/doc/$PRGNAM-$VERSION
+cp README.txt $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install