diff options
author | Hunter Sezen <orbea@fredslev.dk> | 2018-04-02 19:59:16 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2018-04-07 08:13:09 +0700 |
commit | 7ec3df19737aaa1ec555f62a43624cc2e1f2bfaa (patch) | |
tree | ce87110bf07c6eead60fd2a4cc867558c2546e65 /games | |
parent | 4ec9adbe93af2915c1feb6c42af29f7359f6c3f6 (diff) | |
download | slackbuilds-7ec3df19737aaa1ec555f62a43624cc2e1f2bfaa.tar.gz |
games/Tempus-Irae: Fixed for Windows formatted scripts.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'games')
-rw-r--r-- | games/Tempus-Irae/README | 4 | ||||
-rw-r--r-- | games/Tempus-Irae/Tempus-Irae.SlackBuild | 7 |
2 files changed, 9 insertions, 2 deletions
diff --git a/games/Tempus-Irae/README b/games/Tempus-Irae/README index 0bc0c9c0e4..364e0adc82 100644 --- a/games/Tempus-Irae/README +++ b/games/Tempus-Irae/README @@ -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 diff --git a/games/Tempus-Irae/Tempus-Irae.SlackBuild b/games/Tempus-Irae/Tempus-Irae.SlackBuild index 878dd9bdf3..81fb8f0f1c 100644 --- a/games/Tempus-Irae/Tempus-Irae.SlackBuild +++ b/games/Tempus-Irae/Tempus-Irae.SlackBuild @@ -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 |