aboutsummaryrefslogtreecommitdiff
path: root/games/marathon-evil-data
diff options
context:
space:
mode:
authorHunter Sezen <orbea@fredslev.dk>2018-04-01 08:01:33 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-04-01 08:01:33 +0700
commitfaa70f27a0ac3f52195f811f53ea1fce59a26b05 (patch)
tree542e303c3ebf977999656144afe997c8f7bdbe6f /games/marathon-evil-data
parent771ba3845fcab41948dd96f37841f734916a7d48 (diff)
games/marathon-evil-data: Script update.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/marathon-evil-data')
-rw-r--r--games/marathon-evil-data/README4
-rw-r--r--games/marathon-evil-data/marathon-evil-data.SlackBuild14
2 files changed, 9 insertions, 9 deletions
diff --git a/games/marathon-evil-data/README b/games/marathon-evil-data/README
index bf560ac4fa5e..27394f6a5869 100644
--- a/games/marathon-evil-data/README
+++ b/games/marathon-evil-data/README
@@ -9,4 +9,6 @@ Included in the package is a shell script wrapper. Type "marathon-evil"
or select Marathon EVIL 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-evil-data.SlackBuild
+root partition use use:
+
+ OPT=yes ./marathon-evil-data.SlackBuild
diff --git a/games/marathon-evil-data/marathon-evil-data.SlackBuild b/games/marathon-evil-data/marathon-evil-data.SlackBuild
index 157d4171241d..4fc49cc19d71 100644
--- a/games/marathon-evil-data/marathon-evil-data.SlackBuild
+++ b/games/marathon-evil-data/marathon-evil-data.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for Marathon: EVIL
-# 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=MarathonEvil
@@ -50,9 +49,8 @@ WRAPPER=marathon-evil
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