summaryrefslogtreecommitdiff
path: root/games/warsow/warsow.SlackBuild
diff options
context:
space:
mode:
authordrhouse <housegregory299@gmail.com>2013-04-23 20:47:20 -0400
committerNiels Horn <niels.horn@slackbuilds.org>2013-04-28 12:28:17 -0300
commit33166156dbc0b9bf06a150e8098d768a0210c665 (patch)
tree5fd232eacaf380a95892bc458f6e9e725c00ac4d /games/warsow/warsow.SlackBuild
parent686a5a40c0ce0a495599d447b5791c67cd663086 (diff)
downloadslackbuilds-33166156dbc0b9bf06a150e8098d768a0210c665.tar.gz
games/warsow: Updated for version 1.02.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'games/warsow/warsow.SlackBuild')
-rw-r--r--games/warsow/warsow.SlackBuild19
1 files changed, 12 insertions, 7 deletions
diff --git a/games/warsow/warsow.SlackBuild b/games/warsow/warsow.SlackBuild
index 1b2a877102..e713de9d3f 100644
--- a/games/warsow/warsow.SlackBuild
+++ b/games/warsow/warsow.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/sh
-# Slackware build script for Warsow
+# Slackware build script for Warsow
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
@@ -20,13 +20,14 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# Written by Andre Barboza <bmg.andre@gmail.com>
+# Updated by drhouse <housegregory299@gmail.com>
PRGNAM=warsow
-VERSION=${VERSION:-0.62}
+VERSION=${VERSION:-1.02}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-BASE_VERSION=${BASE_VERSION:-0.61}
+BASE_VERSION=${BASE_VERSION:-1.02}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -52,9 +53,13 @@ set -e
rm -rf $PKG $TMP/$PRGNAM-$VERSION
mkdir -p $TMP/$PRGNAM-$VERSION $PKG $OUTPUT
cd $TMP/$PRGNAM-$VERSION
-unzip $CWD/"$PRGNAM"_"$BASE_VERSION"_unified.zip
-cd "$PRGNAM"_"$BASE_VERSION"_unified
-unzip -o $CWD/"$PRGNAM"_"$VERSION"_update.zip
+tar -xvvzf $CWD/"$PRGNAM"_"$BASE_VERSION"_sdk.tar.gz
+tar -xvvzf $CWD/"$PRGNAM"_"$BASE_VERSION".tar.gz
+cd "$PRGNAM"_"$BASE_VERSION"_sdk/source/
+make -j1
+cp -rv $TMP/$PRGNAM-$VERSION/"$PRGNAM"_"$BASE_VERSION"_sdk/source/release/* $TMP/$PRGNAM-$VERSION/"$PRGNAM"_"$BASE_VERSION"/
+cd $TMP/$PRGNAM-$VERSION/"$PRGNAM"_"$BASE_VERSION"
+#unzip -o $CWD/"$PRGNAM"_"$VERSION"_update.zip
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
@@ -78,7 +83,7 @@ install -D -m 0755 libs/irc_$EXESUFFIX.so $PKG/usr/share/warsow/libs
install -D -m 0755 libs/snd_openal_$EXESUFFIX.so $PKG/usr/share/warsow/libs
install -D -m 0755 libs/snd_qf_$EXESUFFIX.so $PKG/usr/share/warsow/libs
-mkdir -p $PKG/usr/share/warsow/basewsw/
+mkdir -p $PKG/usr/share/warsow/basewsw/
cp -ra basewsw/* $PKG/usr/share/warsow/basewsw/
mkdir -p $PKG/usr/share/pixmaps/
cat $CWD/warsow.png > $PKG/usr/share/pixmaps/warsow.png