summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--multimedia/smplayer/README15
-rw-r--r--multimedia/smplayer/doinst.sh21
-rw-r--r--multimedia/smplayer/slack-desc19
-rw-r--r--multimedia/smplayer/smplayer.SlackBuild75
-rw-r--r--multimedia/smplayer/smplayer.info8
5 files changed, 138 insertions, 0 deletions
diff --git a/multimedia/smplayer/README b/multimedia/smplayer/README
new file mode 100644
index 0000000000..d10d2798ab
--- /dev/null
+++ b/multimedia/smplayer/README
@@ -0,0 +1,15 @@
+SMPlayer intends to be a complete front-end for MPlayer, from
+basic features like playing videos, DVDs, and VCDs to more
+advanced features like support for MPlayer filters and more.
+
+There are some optional icon themes available. If you would like
+to include them in your package, place these files in the same
+directory as smplayer.SlackBuild
+
+http://downloads.sourceforge.net/smplayer/smplayer-themes-0.1.18.tar.bz2
+MD5SUM: 089ce8495cc4a958d7c5694a0510f58e
+
+http://downloads.sourceforge.net/smplayer/smplayer-themes-nonfree-0.1.1.tar.bz2
+MD5SUM: 84df710df9732b247dc16a393b101a01
+
+Requires MPlayer and QT4, available at SlackBuilds.org
diff --git a/multimedia/smplayer/doinst.sh b/multimedia/smplayer/doinst.sh
new file mode 100644
index 0000000000..a05c78f507
--- /dev/null
+++ b/multimedia/smplayer/doinst.sh
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+config() {
+ NEW="$1"
+ OLD="$(dirname $NEW)/$(basename $NEW .new)"
+ # If there's no config file by that name, mv it over:
+ if [ ! -r $OLD ]; then
+ mv $NEW $OLD
+ elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
+ # toss the redundant copy
+ rm $NEW
+ fi
+ # Otherwise, we leave the .new copy for the admin to consider...
+}
+
+config etc/smplayer/input.conf.new
+
+if [ -x /usr/bin/update-desktop-database ]; then
+ ./usr/bin/update-desktop-database -q usr/share/applications
+fi
+
diff --git a/multimedia/smplayer/slack-desc b/multimedia/smplayer/slack-desc
new file mode 100644
index 0000000000..f764fd76f5
--- /dev/null
+++ b/multimedia/smplayer/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in. You must
+# make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':'.
+
+ |-----handy-ruler----------------------------------------------------|
+smplayer: SMPlayer (a complete front-end for MPlayer)
+smplayer:
+smplayer: SMPlayer intends to be a complete front-end for MPlayer, from
+smplayer: basic features like playing videos, DVDs, and VCDs to more
+smplayer: advanced features like support for MPlayer filters and more.
+smplayer:
+smplayer: Homepage: http://smplayer.sourceforge.net/
+smplayer:
+smplayer:
+smplayer:
+smplayer:
diff --git a/multimedia/smplayer/smplayer.SlackBuild b/multimedia/smplayer/smplayer.SlackBuild
new file mode 100644
index 0000000000..bd93177f4b
--- /dev/null
+++ b/multimedia/smplayer/smplayer.SlackBuild
@@ -0,0 +1,75 @@
+#!/bin/sh
+
+# Slackware build script for SMPlayer
+# Written by Erik Hanson erik@slackbuilds.org
+
+set -eu
+
+PRGNAM=smplayer
+VERSION=${VERSION:-0.6.5.1}
+ARCH=${ARCH:-i486}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+# Optional theme versions:
+FREEVER=0.1.18
+NONFVER=0.1.1
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
+cd $PRGNAM-$VERSION
+chown -R root:root .
+find . \
+ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
+ -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
+ -exec chmod 644 {} \;
+
+# Fix DOC_PATH and CONF_PATH
+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
+
+strip --strip-unneeded $PKG/usr/bin/*
+
+# Use CONF_PATH
+mkdir -p $PKG/etc/smplayer
+mv $PKG/usr/share/smplayer/input.conf $PKG/etc/smplayer/input.conf.new
+ln -s /etc/smplayer/input.conf $PKG/usr/share/smplayer/input.conf
+
+mv $PKG/usr/share/man $PKG/usr/man
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
+
+# Add extra themes if they exist.
+if [ -r $CWD/smplayer-themes-$FREEVER.tar.bz2 ] ; then
+ cd $TMP
+ rm -rf smplayer-themes-$FREEVER
+ tar xvf $CWD/smplayer-themes-$FREEVER.tar.bz2
+ cd smplayer-themes-$FREEVER
+ make PREFIX=/usr DESTDIR=$PKG install
+fi
+
+if [ -r $CWD/smplayer-themes-nonfree-$NONFVER.tar.bz2 ] ; then
+ cd $TMP
+ rm -rf smplayer-themes-nonfree-$NONFVER
+ tar xvf $CWD/smplayer-themes-nonfree-$NONFVER.tar.bz2
+ cd smplayer-themes-nonfree-$NONFVER
+ make PREFIX=/usr DESTDIR=$PKG install
+fi
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
diff --git a/multimedia/smplayer/smplayer.info b/multimedia/smplayer/smplayer.info
new file mode 100644
index 0000000000..615c2d3a56
--- /dev/null
+++ b/multimedia/smplayer/smplayer.info
@@ -0,0 +1,8 @@
+PRGNAM="smplayer"
+VERSION="0.6.5.1"
+HOMEPAGE="http://smplayer.sourceforge.net/"
+DOWNLOAD="http://downloads.sourceforge.net/smplayer/smplayer-0.6.5.1.tar.bz2"
+MD5SUM="97e7599bd3445207f534eb63437a8744"
+MAINTAINER="Erik Hanson"
+EMAIL="erik@slackbuilds.org"
+APPROVED="dsomero"