summaryrefslogtreecommitdiff
path: root/multimedia/smtube/smtube.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/smtube/smtube.SlackBuild')
-rw-r--r--multimedia/smtube/smtube.SlackBuild28
1 files changed, 20 insertions, 8 deletions
diff --git a/multimedia/smtube/smtube.SlackBuild b/multimedia/smtube/smtube.SlackBuild
index 0ee7e0ef37..d88515865b 100644
--- a/multimedia/smtube/smtube.SlackBuild
+++ b/multimedia/smtube/smtube.SlackBuild
@@ -3,7 +3,7 @@
# Slackware build script for SMTube
# Copyright 2012-2015 Fridrich von Stauffenberg <cancellor2@gmail.com>
-# Copyright 2018 Andrzej Telszewski, Banie
+# Copyright 2018 Andrzej Telszewski, Szczecin
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -24,7 +24,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=smtube
-VERSION=${VERSION:-18.1.0}
+VERSION=${VERSION:-18.3.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -70,13 +70,25 @@ 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 {} \;
-sed -i "/^PREFIX/s/=.*$/=\/usr/;
- /^DOC_PATH/s/\/.*$/\/doc\/$PRGNAM-$VERSION/;
- s/share\/man/man/g" Makefile
+if [ ${USE_QT5:-no} = yes ]; then
+ QMAKE=qmake-qt5
+ LRELEASE=lrelease-qt5
+else
+ QMAKE=qmake
+ LRELEASE=lrelease
+fi
+
+make \
+ QMAKE=$QMAKE \
+ LRELEASE=$LRELEASE \
+ PREFIX=/usr \
+ DOC_PATH="\\\"/usr/doc/$PRGNAM-$VERSION/\\\"" \
+ QMAKE_OPTS="QMAKE_CXXFLAGS=\"$SLKCFLAGS\""
-QMAKE_OPTS="QMAKE_CXXFLAGS=\"$SLKCFLAGS\"" \
-make
-make install DESTDIR=$PKG
+make install \
+ PREFIX=/usr \
+ DOC_PATH=/usr/doc/$PRGNAM-$VERSION \
+ DESTDIR=$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