summaryrefslogtreecommitdiffstats
path: root/gnome-mplayer/build/gnome-mplayer.SlackBuild
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2011-06-26 14:25:45 +0000
committer Eric Hameleers <alien@slackware.com>2011-06-26 14:25:45 +0000
commit808d296a140d236fe1cb8c5d95ca6e9afb1de9dd (patch)
tree5c4a8fb85de0da0defd1ee5003839493048a3169 /gnome-mplayer/build/gnome-mplayer.SlackBuild
parent1e4ac9e12d084513963617f844f234720b455c46 (diff)
downloadasb-808d296a140d236fe1cb8c5d95ca6e9afb1de9dd.tar.gz
asb-808d296a140d236fe1cb8c5d95ca6e9afb1de9dd.tar.xz
Update to 1.0.3
Diffstat (limited to '')
-rwxr-xr-xgnome-mplayer/build/gnome-mplayer.SlackBuild21
1 files changed, 15 insertions, 6 deletions
diff --git a/gnome-mplayer/build/gnome-mplayer.SlackBuild b/gnome-mplayer/build/gnome-mplayer.SlackBuild
index 718f2c68..d116822f 100755
--- a/gnome-mplayer/build/gnome-mplayer.SlackBuild
+++ b/gnome-mplayer/build/gnome-mplayer.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/sh
# $Id$
-# Copyright (c) 2009,2010 Eric Hameleers, Eindhoven, NL
+# Copyright 2009, 2010, 2011 Eric Hameleers, Eindhoven, NL
# All rights reserved.
#
# Permission to use, copy, modify, and distribute this software for
@@ -36,6 +36,8 @@
# * Update.
# 0.9.9.2-1: 02/jun/2010 by Eric Hameleers <alien@slackware.com>
# * Update.
+# 1.0.3-1: 26/jun/2011 by Eric Hameleers <alien@slackware.com>
+# * Update.
#
# Run 'sh gnome-mplayer.SlackBuild' to build a Slackware package.
# The package (.tgz) and .txt file as well as build logs are created in /tmp .
@@ -46,7 +48,7 @@
# Set initial variables:
PRGNAM=gnome-mplayer
-VERSION=${VERSION:-0.9.9.2}
+VERSION=${VERSION:-1.0.3}
BUILD=${BUILD:-1}
NUMJOBS=${NUMJOBS:" -j4 "}
TAG=${TAG:-alien}
@@ -65,7 +67,6 @@ OUTPUT=${OUTPUT:-/tmp}
SOURCE="$SRCDIR/${PRGNAM}-${VERSION}.tar.gz"
SRCURL="http://gnome-mplayer.googlecode.com/files/${PRGNAM}-${VERSION}.tar.gz"
-
##
## --- with a little luck, you won't have to edit below this point --- ##
##
@@ -114,10 +115,11 @@ rm -rf $OUTPUT/{configure,make,install,error,makepkg}-$PRGNAM.log
# Source file availability:
if ! [ -f ${SOURCE} ]; then
+ echo "Source '$(basename ${SOURCE})' not available yet..."
+ # Check if the $SRCDIR is writable at all - if not, download to $OUTPUT
+ [ -w "$SRCDIR" ] || SOURCE="$OUTPUT/$(basename $SOURCE)"
+ if [ -f ${SOURCE} ]; then echo "Ah, found it!"; continue; fi
if ! [ "x${SRCURL}" == "x" ]; then
- # Check if the $SRCDIR is writable at all - if not, download to $OUTPUT
- [ -w "$SRCDIR" ] || SOURCE="$OUTPUT/$(basename $SOURCE)"
- echo "Source '$(basename ${SOURCE})' not available yet..."
echo "Will download file to $(dirname $SOURCE)"
wget -nv -T 20 -O "${SOURCE}" "${SRCURL}" || true
if [ $? -ne 0 -o ! -s "${SOURCE}" ]; then
@@ -183,6 +185,13 @@ if [ -x usr/bin/update-mime-database ]; then
chroot . /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1
fi
+# Update hicolor theme cache:
+if [ -d usr/share/icons/hicolor ]; then
+ if [ -x /usr/bin/gtk-update-icon-cache ]; then
+ chroot . /usr/bin/gtk-update-icon-cache -f -t usr/share/icons/hicolor 1> /dev/null 2> /dev/null
+ fi
+fi
+
EOT
# Add documentation: