aboutsummaryrefslogtreecommitdiff
path: root/multimedia/smplayer/smplayer.SlackBuild
diff options
context:
space:
mode:
authorAndrzej Telszewski <atelszewski@gmail.com>2017-09-03 07:28:26 +0100
committerDavid Spencer <idlemoor@slackbuilds.org>2017-09-03 07:28:26 +0100
commit5c717e2f4c3718312b6bd70e80bc183ba703a2fd (patch)
treecc33934e0832409ec634dffe08f11a5f6473b83f /multimedia/smplayer/smplayer.SlackBuild
parentda5c8155559fd48b3074d661abd7b202ec6282c0 (diff)
multimedia/smplayer: Updated for version 17.9.0.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'multimedia/smplayer/smplayer.SlackBuild')
-rw-r--r--multimedia/smplayer/smplayer.SlackBuild38
1 files changed, 30 insertions, 8 deletions
diff --git a/multimedia/smplayer/smplayer.SlackBuild b/multimedia/smplayer/smplayer.SlackBuild
index 2669c463a9345..48b87d8afabc1 100644
--- a/multimedia/smplayer/smplayer.SlackBuild
+++ b/multimedia/smplayer/smplayer.SlackBuild
@@ -24,7 +24,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=smplayer
-VERSION=${VERSION:-17.8.0}
+VERSION=${VERSION:-17.9.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -73,14 +73,28 @@ 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;
- s/^QMAKE_OPTS=/QMAKE_OPTS+=/" Makefile
+# Fix man page path.
+sed -i "s/share\/man/man/g" Makefile
-QMAKE_OPTS="QMAKE_CXXFLAGS=\"$SLKCFLAGS\"" \
-make
-make install DESTDIR=$PKG
+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\""
+
+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
@@ -100,6 +114,10 @@ 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 {} \;
+if [ ${USE_QT5:-no} = yes ]; then
+ sed -i "s/rcc -binary/rcc-qt5 -binary/g" themes/Makefile
+fi
+
make
make install PREFIX=/usr DESTDIR=$PKG
@@ -117,6 +135,10 @@ 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 {} \;
+if [ ${USE_QT5:-no} = yes ]; then
+ sed -i "s/rcc -binary/rcc-qt5 -binary/g" themes/Makefile
+fi
+
make
make install PREFIX=/usr DESTDIR=$PKG