From c8bf3c668c3bf7b13f012ca9ad214b7f8fde5c13 Mon Sep 17 00:00:00 2001 From: Martin Rogge Date: Wed, 1 Aug 2012 07:36:27 -0300 Subject: games/firestorm: Updated for version 4.1.1.28744. Signed-off-by: Niels Horn --- games/firestorm/doinst.sh | 12 ++++++++++++ games/firestorm/firestorm.SlackBuild | 6 ++++-- games/firestorm/firestorm.info | 8 ++++---- 3 files changed, 20 insertions(+), 6 deletions(-) (limited to 'games') diff --git a/games/firestorm/doinst.sh b/games/firestorm/doinst.sh index 5e0294e2f9..7474cfb7ca 100644 --- a/games/firestorm/doinst.sh +++ b/games/firestorm/doinst.sh @@ -1,3 +1,15 @@ +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 opt/firestorm/firestorm.new if [ -x /usr/bin/update-desktop-database ]; then /usr/bin/update-desktop-database 1> /dev/null &> /dev/null fi diff --git a/games/firestorm/firestorm.SlackBuild b/games/firestorm/firestorm.SlackBuild index 1fc636179b..ce156f1156 100644 --- a/games/firestorm/firestorm.SlackBuild +++ b/games/firestorm/firestorm.SlackBuild @@ -24,7 +24,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=firestorm -VERSION=${VERSION:-4.0.1.27000} +VERSION=${VERSION:-4.1.1.28744} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -64,8 +64,10 @@ chmod -R u+rw-s,go+r-ws . mkdir -p $PKG/opt/$PRGNAM # copy files just like the install script would do cp -a * $PKG/opt/$PRGNAM +# avoid overwriting the previous configuration +mv $PKG/opt/$PRGNAM/firestorm $PKG/opt/$PRGNAM/firestorm.new # sound configuration for standard Slackware installation -cat firestorm | sed -e 's/^#export LL_BAD_OPENAL_DRIVER=x/export LL_BAD_OPENAL_DRIVER=x/' > $PKG/opt/$PRGNAM/firestorm +cat firestorm | sed -e 's/^#export LL_BAD_OPENAL_DRIVER=x/export LL_BAD_OPENAL_DRIVER=x/' > $PKG/opt/$PRGNAM/firestorm.new mkdir -p $PKG/usr/bin cat << EOF > $PKG/usr/bin/$PRGNAM diff --git a/games/firestorm/firestorm.info b/games/firestorm/firestorm.info index d799717748..11315e3276 100644 --- a/games/firestorm/firestorm.info +++ b/games/firestorm/firestorm.info @@ -1,10 +1,10 @@ PRGNAM="firestorm" -VERSION="4.0.1.27000" +VERSION="4.1.1.28744" HOMEPAGE="http://www.phoenixviewer.com/" -DOWNLOAD="http://downloads.phoenixviewer.com/Linux/Phoenix_Firestorm-Release_i686_4.0.1.27000.tar.bz2" -MD5SUM="0f5314d009b5f7d646a8691caa587fda" +DOWNLOAD="http://downloads.phoenixviewer.com/Linux/Phoenix_Firestorm-Release_i686_4.1.1.28744.tar.bz2" +MD5SUM="950cbdfab0b24ea4a259e1840b083024" DOWNLOAD_x86_64="UNSUPPORTED" MD5SUM_x86_64="UNSUPPORTED" MAINTAINER="Martin Rogge" EMAIL="martin_rogge@users.sourceforge.net" -APPROVED="Niels Horn,Erik Hanson" +APPROVED="Niels Horn" -- cgit v1.2.3