diff options
Diffstat (limited to 'games/marathon-eternal-data/marathon-eternal-data.SlackBuild')
-rw-r--r-- | games/marathon-eternal-data/marathon-eternal-data.SlackBuild | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/games/marathon-eternal-data/marathon-eternal-data.SlackBuild b/games/marathon-eternal-data/marathon-eternal-data.SlackBuild index 48a007448aa77..c80802f33b143 100644 --- a/games/marathon-eternal-data/marathon-eternal-data.SlackBuild +++ b/games/marathon-eternal-data/marathon-eternal-data.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for Marathon Eternal X -# 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 @@ -24,7 +24,7 @@ PRGNAM=marathon-eternal-data VERSION=${VERSION:-1.1.0} -SRCVER=$(echo $VERSION | tr -d .) +SRCVER=$(printf %s "$VERSION" | tr -d .) BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -35,14 +35,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=EternalX @@ -51,9 +50,8 @@ WRAPPER=marathon-eternal 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 |