diff options
author | Hunter Sezen <orbea@fredslev.dk> | 2018-04-01 07:57:29 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2018-04-01 07:57:29 +0700 |
commit | 730fb71626d5fd6490c4d12afb0adab7c6edbc0d (patch) | |
tree | 3bda2affe6dd36849e2b98125bb86d182d4dc6e0 | |
parent | 39a6d67dae22d2d440dd103f8078dfd1f383bf49 (diff) |
games/Tempus-Irae: Updated for version 1.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | games/Tempus-Irae/README | 10 | ||||
-rw-r--r-- | games/Tempus-Irae/Tempus-Irae.SlackBuild | 31 | ||||
-rw-r--r-- | games/Tempus-Irae/Tempus-Irae.info | 8 |
3 files changed, 31 insertions, 18 deletions
diff --git a/games/Tempus-Irae/README b/games/Tempus-Irae/README index ee09b416cb945..0bc0c9c0e4c07 100644 --- a/games/Tempus-Irae/README +++ b/games/Tempus-Irae/README @@ -13,7 +13,13 @@ The Aleph One version of Tempus Irae includes both Tempus Irae and Tempus Irae 2: The Lost Levelsi. Included in the package is a shell script wrapper. Type "tempus-irae" -or select Tempus Irae from the KDE or XFCE "Games" menu. +or select Tempus Irae from the KDE or XFCE "Games" menu. + +The Tempus_Premium_Landscapes.zip archive is optional and if present the +Tempus Irae Enhanced Hi Res Landscapes will be installed too. This will +require at least 64mb VRAM to be available. To install the gamedata in /opt instead of /usr to save space in the -root partition use use OPT=yes ./Tempus-Irae.SlackBuild +root partition use use: + + OPT=yes ./Tempus-Irae.SlackBuild diff --git a/games/Tempus-Irae/Tempus-Irae.SlackBuild b/games/Tempus-Irae/Tempus-Irae.SlackBuild index 50925fd80128c..878dd9bdf3fb7 100644 --- a/games/Tempus-Irae/Tempus-Irae.SlackBuild +++ b/games/Tempus-Irae/Tempus-Irae.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for Tempus Irae -# 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 @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=Tempus-Irae -VERSION=${VERSION:-20060615} # Last modified date from the zipfile's http header +VERSION=${VERSION:-1.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -34,26 +34,31 @@ 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=$(echo $PRGNAM | tr - _) +ZIPNAME=$(printf %s $PRGNAM | tr - _) ZIPFILE=$ZIPNAME.zip -WRAPPER=$(echo $PRGNAM | tr '[A-Z]' '[a-z]') +WRAPPER=$(printf %s $PRGNAM | tr 'A-Z' 'a-z') 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 +if [ -f $CWD/Tempus_Premium_Landscapes.zip ]; then + unzip $CWD/Tempus_Premium_Landscapes.zip -d $DATADIR + cp -a $DATADIR/Tempus_Premium_Landscapes/* $DATADIR/$ZIPNAME + rm -r $DATADIR/Tempus_Premium_Landscapes +fi + chown -R root:root $DATADIR # NB: the usual find predicate is different (zipfile stores +x permissions @@ -76,11 +81,11 @@ find $PKG/usr/games -perm 644 -exec chmod 755 {} \; mkdir -p $PKG/usr/share/applications cat > $PKG/usr/share/applications/$WRAPPER.desktop <<EOF [Desktop Entry] -Name=$(echo $PRGNAM | tr - " ") +Name=$(printf %s $PRGNAM | tr - " ") Exec=$WRAPPER Icon=alephone Type=Application -Comment=$(echo $PRGNAM | tr - " ") (first-person shooter game) +Comment=$(printf %s $PRGNAM | tr - " ") (first-person shooter game) Categories=Game;ActionGame; EOF diff --git a/games/Tempus-Irae/Tempus-Irae.info b/games/Tempus-Irae/Tempus-Irae.info index e7b33110f8442..db2f51a315201 100644 --- a/games/Tempus-Irae/Tempus-Irae.info +++ b/games/Tempus-Irae/Tempus-Irae.info @@ -1,8 +1,10 @@ PRGNAM="Tempus-Irae" -VERSION="20060615" +VERSION="1.1" HOMEPAGE="http://nardo.bungie.org/home.php" -DOWNLOAD="http://nardofiles.bungie.org/Tempus_Irae.zip" -MD5SUM="4a707967e062c12236a71f3cfd29602b" +DOWNLOAD="http://nardofiles.bungie.org/Tempus_Irae.zip \ + http://nardofiles.bungie.org/Tempus_Premium_Landscapes.zip" +MD5SUM="4a707967e062c12236a71f3cfd29602b \ + 67df8460cc51074289e154ca9e7d4ad9" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="alephone" |