aboutsummaryrefslogtreecommitdiff
path: root/multimedia/smplayer/smplayer.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/smplayer/smplayer.SlackBuild')
-rw-r--r--multimedia/smplayer/smplayer.SlackBuild36
1 files changed, 30 insertions, 6 deletions
diff --git a/multimedia/smplayer/smplayer.SlackBuild b/multimedia/smplayer/smplayer.SlackBuild
index f684a9fe0f799..a4299135e97b8 100644
--- a/multimedia/smplayer/smplayer.SlackBuild
+++ b/multimedia/smplayer/smplayer.SlackBuild
@@ -1,12 +1,31 @@
#!/bin/sh
# Slackware build script for SMPlayer
-# Written by Erik Hanson erik@slackbuilds.org
+
+# Copyright 2009 Erik W. Hanson, Minneapolis, MN, USA
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=smplayer
-VERSION=${VERSION:-0.6.7}
+VERSION=${VERSION:-0.6.8}
ARCH=${ARCH:-i486}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
# Optional theme versions:
@@ -37,8 +56,8 @@ find . \
sed -i "s%share/doc/packages/smplayer%doc/$PRGNAM-$VERSION%" Makefile
sed -i "s%^CONF_PREFIX%#CONF_PREFIX%" Makefile
-make QMAKE=qmake-qt4 PREFIX=/usr
-make QMAKE=qmake-qt4 PREFIX=/usr DESTDIR=$PKG install
+make PREFIX=/usr
+make PREFIX=/usr DESTDIR=$PKG install
strip --strip-unneeded $PKG/usr/bin/*
@@ -71,5 +90,10 @@ if [ -r $CWD/smplayer-themes-nonfree-$NONFVER.tar.bz2 ] ; then
make PREFIX=/usr DESTDIR=$PKG install
fi
+# Fix theme permissions.
+if [ -d $PKG/usr/share/smplayer/themes/ ] ; then
+ chown -R root:root $PKG/usr/share/smplayer/themes/
+fi
+
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}