games/Tempus-Irae: Fixed for Windows formatted scripts.

Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
Hunter Sezen 2018-04-02 19:59:16 +00:00 committed by Willy Sudiarto Raharjo
parent 4ec9adbe93
commit 7ec3df1973
2 changed files with 9 additions and 2 deletions

View File

@ -19,7 +19,7 @@ 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:
To install the gamedata in /opt instead of /usr to save space in the
root partition use:
OPT=yes ./Tempus-Irae.SlackBuild

View File

@ -89,6 +89,13 @@ Comment=$(printf %s $PRGNAM | tr - " ") (first-person shooter game)
Categories=Game;ActionGame;
EOF
# Fix windows formatted scripts
set -- $DATADIR/*/Scripts/*
for script do
tr '\r' '\n' < "$script" > "$script-tmp"
mv -- "$script-tmp" "$script"
done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild