summaryrefslogtreecommitdiff
path: root/multimedia/smplayer/smplayer.SlackBuild
diff options
context:
space:
mode:
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 2669c463a9..48b87d8afa 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