summaryrefslogtreecommitdiffstats
path: root/games/ut2004
diff options
context:
space:
mode:
Diffstat (limited to 'games/ut2004')
-rw-r--r--games/ut2004/README11
-rw-r--r--games/ut2004/ut2004.SlackBuild18
2 files changed, 20 insertions, 9 deletions
diff --git a/games/ut2004/README b/games/ut2004/README
index 4231fee62a..30d67913ee 100644
--- a/games/ut2004/README
+++ b/games/ut2004/README
@@ -9,8 +9,8 @@ Optional bonus packs and more: http://liflg.org/?catid=6&gameid=17
Notes:
-A guide for how to use this SlackBuild to install ut2004 with this SlackBuild
-using the game source found at gog.com can be found here:
+A guide for how to use this SlackBuild to install ut2004 with this
+SlackBuild using the game source found at gog.com can be found here:
http://docs.slackware.com/howtos:misc:games:ut2004
This takes the installer (which has the latest version) from Linux
@@ -20,11 +20,12 @@ playing on a 32-bit or 64-bit system and install the correct bins.
Your game data (and mods) must go into "/usr/share/games/ut2004". There
is a home folder (.ut2004) for your configs, but you'll need to be able
-to modify the contents located under the share/games folder. You should
+to modify the contents located under the share/games folder. You should
have permissions to modify this folder with the games group.
-It's probably best to put the game data downloaded from Steam or from
-your CDs in "/usr/share/games/ut2004" before installing this SlackBuild.
+It's probably best to put the game data downloaded from Steam or
+from your CDs in "/usr/share/games/ut2004" before installing this
+SlackBuild.
You'll need to create a file named, "CDkey" in the
"/usr/share/games/ut2004/System" directory. And in it, you need to
diff --git a/games/ut2004/ut2004.SlackBuild b/games/ut2004/ut2004.SlackBuild
index 47b682e602..fac92c09aa 100644
--- a/games/ut2004/ut2004.SlackBuild
+++ b/games/ut2004/ut2004.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for ut2004
@@ -25,21 +25,31 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=ut2004
VERSION=${VERSION:-3369}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
GAMDIR=usr/share/games/ut2004
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi
-CWD=$(pwd)
+# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
+# the name of the created package would be, and then exit. This information
+# could be useful to other scripts.
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -98,4 +108,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE