summaryrefslogtreecommitdiffstats
path: root/MPlayer/build/MPlayer.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'MPlayer/build/MPlayer.SlackBuild')
-rwxr-xr-xMPlayer/build/MPlayer.SlackBuild26
1 files changed, 19 insertions, 7 deletions
diff --git a/MPlayer/build/MPlayer.SlackBuild b/MPlayer/build/MPlayer.SlackBuild
index 9909a8d4..d0f23d74 100755
--- a/MPlayer/build/MPlayer.SlackBuild
+++ b/MPlayer/build/MPlayer.SlackBuild
@@ -63,6 +63,8 @@
# of DECSS dvd decryption code, and mp3/aac/amr audio encoders.
# r28929-1: 10/mar/2009 by Eric Hameleers <alien@slackware.com>
# * Update.
+# r29301-1: 12/may/2009 by Eric Hameleers <alien@slackware.com>
+# * Update.
#
# Run 'sh MPlayer.SlackBuild' to build a Slackware package.
# The package (.tgz) plus descriptive .txt file are created in /tmp .
@@ -73,7 +75,7 @@
# Set initial variables:
PRGNAM=MPlayer
-VERSION=${VERSION:-r28929}
+VERSION=${VERSION:-r29301}
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-alien}
@@ -158,15 +160,19 @@ src_checkout() {
fi
case ${1} in
0) # mplayer
- mkdir mplayertemp-$$ \
- && cd mplayertemp-$$ \
- && svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer \
- && mv mplayer MPlayer-$VERSION \
+ if [ "$(echo ${VERSION}|cut -c1)" == 'r' ]; then # revision instead of date
+ REV=$(echo ${VERSION} | cut -c2-)
+ else
+ REV="{${VERSION}}"
+ fi
+ mkdir MPlayer-${VERSION} \
+ && cd MPlayer-${VERSION} \
+ && svn checkout --revision $REV svn://svn.mplayerhq.hu/mplayer/trunk . \
&& find . -type d -name '.svn' -depth | xargs rm -rf \
&& chown -R root:root . \
+ && cd .. \
&& tar -${TARCOMP}cf ${2} MPlayer-${VERSION}
- cd ..
- rm -rf mplayertemp-$$
+ rm -rf MPlayer-${VERSION}
;;
*) # Do nothing
;;
@@ -358,6 +364,12 @@ if [ -x /usr/bin/update-desktop-database ]; then
chroot . /usr/bin/update-desktop-database -q usr/share/applications
fi
+if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
+ if [ -x usr/bin/gtk-update-icon-cache ]; then
+ chroot . /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1
+ fi
+fi
+
EOINS
# Add documentation: