From 808d296a140d236fe1cb8c5d95ca6e9afb1de9dd Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Sun, 26 Jun 2011 14:25:45 +0000 Subject: Update to 1.0.3 --- gecko-mediaplayer/build/gecko-mediaplayer.SlackBuild | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'gecko-mediaplayer/build/gecko-mediaplayer.SlackBuild') diff --git a/gecko-mediaplayer/build/gecko-mediaplayer.SlackBuild b/gecko-mediaplayer/build/gecko-mediaplayer.SlackBuild index 13ba4724..244f3958 100755 --- a/gecko-mediaplayer/build/gecko-mediaplayer.SlackBuild +++ b/gecko-mediaplayer/build/gecko-mediaplayer.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 @@ -37,6 +37,8 @@ # the version 2.0.x in slackware13.0/patches # 0.9.9.2-1: 02/jun/2010 by Eric Hameleers # * Upgrade. +# 1.0.3-1: 26/jun/2011 by Eric Hameleers +# * Upgrade. # # Run 'sh gecko-mediaplayer.SlackBuild' to build a Slackware package. # The package (.tgz) and .txt file as well as build logs are created in /tmp . @@ -47,7 +49,7 @@ # Set initial variables: PRGNAM=gecko-mediaplayer -VERSION=${VERSION:-0.9.9.2} +VERSION=${VERSION:-1.0.3} BUILD=${BUILD:-1} NUMJOBS=${NUMJOBS:" -j4 "} TAG=${TAG:-alien} @@ -113,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 -- cgit v1.2.3-65-gdbad