summaryrefslogtreecommitdiff
path: root/libraries/gallerize/gallerize.SlackBuild
diff options
context:
space:
mode:
authorDimitris Zlatanidis <d.zlatanidis@gmail.com>2021-05-15 18:43:02 +0300
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-05-27 07:47:21 +0700
commit14cf97dad45d60ff8304e4fd8f58a355d3283fcc (patch)
tree6be160f56ea13d22ec017b3a09590b7ca57daf7e /libraries/gallerize/gallerize.SlackBuild
parent34f52f516e9db2bcc94c9c8d76a5ecfa9ac83388 (diff)
downloadslackbuilds-14cf97dad45d60ff8304e4fd8f58a355d3283fcc.tar.gz
libraries/gallerize: Removed Python 2 support.
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/gallerize/gallerize.SlackBuild')
-rw-r--r--libraries/gallerize/gallerize.SlackBuild10
1 files changed, 5 insertions, 5 deletions
diff --git a/libraries/gallerize/gallerize.SlackBuild b/libraries/gallerize/gallerize.SlackBuild
index 49e5c5bf6a..ca2bfb8cf2 100644
--- a/libraries/gallerize/gallerize.SlackBuild
+++ b/libraries/gallerize/gallerize.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for gallerize
-# Copyright 2014-2016 Dimitris Zlatanidis Orestiada, Greece
+# Copyright 2014-2021 Dimitris Zlatanidis Orestiada, Greece
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -24,7 +24,7 @@
PRGNAM=gallerize
VERSION=${VERSION:-0.3.2}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -60,7 +60,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || tar xvf $CWD/v$VERSION.tar.gz
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@@ -69,13 +69,13 @@ find -L . \
\( -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
+python3 setup.py install --root=$PKG
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 LICENSE README.rst $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a README.rst PKG-INFO $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install