mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-18 22:06:04 +01:00
games/marathon-eternal-data: Script update.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
5b0f979c48
commit
771ba3845f
2 changed files with 13 additions and 12 deletions
|
@ -17,8 +17,11 @@ and is a nearly total conversion, featuring:
|
|||
* And several new creatures and characters, alongside the complete
|
||||
cast from the original trilogy.
|
||||
|
||||
Included in the package is a shell script wrapper. Type "marathon-eternal"
|
||||
or select Marathon Eternal X from the KDE or XFCE "Games" menu.
|
||||
Included in the package is a shell script wrapper. Type
|
||||
"marathon-eternal" or select Marathon Eternal X 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-eternal-data.SlackBuild
|
||||
root partition use use:
|
||||
|
||||
OPT=yes ./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
|
||||
|
|
Loading…
Reference in a new issue