aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHunter Sezen <orbea@fredslev.dk>2018-04-01 08:02:13 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-04-01 08:02:13 +0700
commitd56384da621af338289a0bf4ee47452153c59dc5 (patch)
tree8130d96335aa01be59e71b77a7b9b40affb8b52e
parentfaa70f27a0ac3f52195f811f53ea1fce59a26b05 (diff)
games/marathon-red-data: Script update.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--games/marathon-red-data/README7
-rw-r--r--games/marathon-red-data/marathon-red-data.SlackBuild14
2 files changed, 11 insertions, 10 deletions
diff --git a/games/marathon-red-data/README b/games/marathon-red-data/README
index dd6e12c259b6b..7362875c515a4 100644
--- a/games/marathon-red-data/README
+++ b/games/marathon-red-data/README
@@ -3,10 +3,13 @@ marathon-red-data (game data for use with alephone package)
Created to be a survival horror-esque conversion, Marathon RED is
widely known as the single most difficult of all conversions.
-Marathon RED features a new arsenal of weapons, new monsters and textures.
+Marathon RED features a new arsenal of weapons, new monsters and
+textures.
Included in the package is a shell script wrapper. Type "marathon-red"
or select Marathon RED from the KDE or XFCE "Games" menu.
To install the gamedata in /opt instead of /usr to save space in the
-root partition use use OPT=yes ./marathon-red-data.SlackBuild
+root partition use use:
+
+ OPT=yes ./marathon-red-data.SlackBuild
diff --git a/games/marathon-red-data/marathon-red-data.SlackBuild b/games/marathon-red-data/marathon-red-data.SlackBuild
index e7913bee73b85..0e39c9d22afce 100644
--- a/games/marathon-red-data/marathon-red-data.SlackBuild
+++ b/games/marathon-red-data/marathon-red-data.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for Marathon RED
-# Copyright 2015 Hunter Sezen California, USA
+# Copyright 2015, 2018 Hunter Sezen California, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -34,14 +34,13 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-set -e
+set -eu
# install gamedata in opt instead of usr
-OPT=${OPT:-no}
-if [ "${OPT:-yes}" == "yes" ]; then
- DATA="/opt/AlephOne"
+if [ "${OPT:-0}" != 0 ]; then
+ DATA='/opt/AlephOne'
else
- DATA="/usr/share/AlephOne/gamedata"
+ DATA='/usr/share/AlephOne/gamedata'
fi
ZIPNAME=MarathonRED
@@ -50,9 +49,8 @@ WRAPPER=marathon-red
DATADIR=$PKG$DATA
rm -rf $PKG
-mkdir -p $TMP $PKG $OUTPUT
+mkdir -p $TMP $PKG $OUTPUT $DATADIR
cd $TMP
-mkdir -p $DATADIR
unzip $CWD/$ZIPFILE -d $DATADIR
chown -R root:root $DATADIR