Browse Source

multimedia/smplayer: Updated for version 17.9.0.

Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
pull/47/head
Andrzej Telszewski 8 years ago
committed by David Spencer
parent
commit
5c717e2f4c
  1. 5
      multimedia/smplayer/README
  2. 38
      multimedia/smplayer/smplayer.SlackBuild
  3. 6
      multimedia/smplayer/smplayer.info

5
multimedia/smplayer/README

@ -14,3 +14,8 @@ settings of all files you play. So you start to watch a movie but you
have to leave... don't worry, when you open that movie again it will
be resumed at the same point you left it, and with the same settings:
audio track, subtitles, volume.
If you prefer to build SMPlayer against Qt5 rather than Qt4, install
qt5 (available from SlackBuilds.org) and run the script like that:
USE_QT5=yes ./smplayer.SlackBuild

38
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

6
multimedia/smplayer/smplayer.info

@ -1,10 +1,10 @@
PRGNAM="smplayer"
VERSION="17.8.0"
VERSION="17.9.0"
HOMEPAGE="http://www.smplayer.info/"
DOWNLOAD="http://downloads.sourceforge.net/smplayer/smplayer-17.8.0.tar.bz2 \
DOWNLOAD="http://downloads.sourceforge.net/smplayer/smplayer-17.9.0.tar.bz2 \
http://downloads.sourceforge.net/smplayer/smplayer-themes-17.3.0.tar.bz2 \
http://downloads.sourceforge.net/smplayer/smplayer-skins-15.2.0.tar.bz2"
MD5SUM="174c1d1ea7d6b6df88c945bdeb91482e \
MD5SUM="79a4de1018e50802ad684b55e8ed6921 \
33c063c5a80c5b1625f51ddbb7bfd3a1 \
57e165cf9a95808fafd179e5322b7f15"
DOWNLOAD_x86_64=""

Loading…
Cancel
Save