summaryrefslogtreecommitdiff
path: root/games/firestorm/firestorm.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/firestorm/firestorm.SlackBuild')
-rw-r--r--games/firestorm/firestorm.SlackBuild27
1 files changed, 15 insertions, 12 deletions
diff --git a/games/firestorm/firestorm.SlackBuild b/games/firestorm/firestorm.SlackBuild
index 38503d0ecf..1fc636179b 100644
--- a/games/firestorm/firestorm.SlackBuild
+++ b/games/firestorm/firestorm.SlackBuild
@@ -10,7 +10,7 @@
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
+# notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
@@ -24,7 +24,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=firestorm
-VERSION=${VERSION:-3.2.2.24336}
+VERSION=${VERSION:-4.0.1.27000}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -32,7 +32,7 @@ if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i686 ;;
arm*) ARCH=arm ;;
- *) ARCH=$( uname -m ) ;;
+ *) ARCH=$( uname -m ) ;;
esac
fi
@@ -42,14 +42,14 @@ PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" != "i686" ] ; then
- echo "Architecture other than i686 is not supported by upstream at this point."
- exit
+ echo "Architecture other than i686 is not supported by upstream at this point."
+ exit
fi
-set -e
+set -e
-BASENAME="Phoenix_Firestorm-Release_i686_$VERSION"
-FILENAME="${BASENAME}.tar.bz2"
+BASENAME="Phoenix_Firestorm-Release_i686_${VERSION}"
+FILENAME="Phoenix_Firestorm-Release_i686_${VERSION}.tar.bz2"
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
@@ -62,7 +62,10 @@ chown -R root:root .
chmod -R u+rw-s,go+r-ws .
mkdir -p $PKG/opt/$PRGNAM
-cp -a * $PKG/opt/$PRGNAM # does the same as the install script in the archive
+# copy files just like the install script would do
+cp -a * $PKG/opt/$PRGNAM
+# 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
mkdir -p $PKG/usr/bin
cat << EOF > $PKG/usr/bin/$PRGNAM
@@ -72,15 +75,15 @@ exec /opt/$PRGNAM/firestorm
EOF
chmod 755 $PKG/usr/bin/$PRGNAM
-install -m 0644 -p -D $TMP/$BASENAME/firestorm_icon.png $PKG/usr/share/pixmaps/$PRGNAM.png
+install -m 0644 -p -D $TMP/$BASENAME/firestorm_icon.png $PKG/usr/share/pixmaps/$PRGNAM.png
mkdir -p $PKG/usr/share/applications
cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
- FIRESTORM_DESKTOPINSTALL.txt README*.txt VivoxAUP.txt featuretable_linux.txt gpu_table.txt licenses.txt \
- $PKG/usr/doc/$PRGNAM-$VERSION/
+ FIRESTORM_DESKTOPINSTALL.txt README*.txt VivoxAUP.txt featuretable_linux.txt gpu_table.txt licenses.txt \
+ $PKG/usr/doc/$PRGNAM-$VERSION/
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install