summaryrefslogtreecommitdiff
path: root/multimedia/smtube
diff options
context:
space:
mode:
authorAndrzej Telszewski <atelszewski@gmail.com>2018-04-17 22:39:52 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-04-21 07:43:00 +0700
commiteb2de3a42420b89edc46666a2983142cbe796c1d (patch)
tree470b798a1a01ab3d68d671d92c7920842eef67f0 /multimedia/smtube
parentdcd6d0ba62fc7916dd250ce0f0483bb4e4828790 (diff)
downloadslackbuilds-eb2de3a42420b89edc46666a2983142cbe796c1d.tar.gz
multimedia/smtube: Updated for version 18.3.0.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'multimedia/smtube')
-rw-r--r--multimedia/smtube/README5
-rw-r--r--multimedia/smtube/smtube.SlackBuild28
-rw-r--r--multimedia/smtube/smtube.info6
3 files changed, 28 insertions, 11 deletions
diff --git a/multimedia/smtube/README b/multimedia/smtube/README
index 13cebd53b6..5b45f3a55f 100644
--- a/multimedia/smtube/README
+++ b/multimedia/smtube/README
@@ -2,3 +2,8 @@ SMTube is an application that allows to browse, search and play YouTube
videos. Videos are played back with a media player (by default SMPlayer)
instead of a flash player, this allows better performance, particularly
with HD content.
+
+If you prefer to build SMTube against Qt5 rather than Qt4, install qt5 and
+qt5-webkit (both available from SlackBuilds.org) and run the script like that:
+
+ USE_QT5=yes ./smplayer.SlackBuild
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
diff --git a/multimedia/smtube/smtube.info b/multimedia/smtube/smtube.info
index 08f97bf76a..7f913962ce 100644
--- a/multimedia/smtube/smtube.info
+++ b/multimedia/smtube/smtube.info
@@ -1,8 +1,8 @@
PRGNAM="smtube"
-VERSION="18.1.0"
+VERSION="18.3.0"
HOMEPAGE="https://www.smtube.org/"
-DOWNLOAD="https://download.sourceforge.net/project/smtube/SMTube/18.1.0/smtube-18.1.0.tar.bz2"
-MD5SUM="ff53e6549082a84cedf66fc8441c9a99"
+DOWNLOAD="https://download.sourceforge.net/project/smtube/SMTube/18.3.0/smtube-18.3.0.tar.bz2"
+MD5SUM="81652002de0006da52361faebe7bd9f2"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""