diff options
author | Hunter Sezen <orbea@fredslev.dk> | 2018-04-02 20:03:30 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2018-04-07 08:13:09 +0700 |
commit | 4b2199c2f988804b09e0fc91d6ecfa0ad08b1160 (patch) | |
tree | c59b951491fbcf963aaa27627c42e1cceb3e6cde | |
parent | 7ec3df19737aaa1ec555f62a43624cc2e1f2bfaa (diff) |
games/marathon-eternal-data: Fixed for Windows formatted scripts.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
-rw-r--r-- | games/marathon-eternal-data/README | 2 | ||||
-rw-r--r-- | games/marathon-eternal-data/marathon-eternal-data.SlackBuild | 9 | ||||
-rw-r--r-- | games/marathon-eternal-data/marathon-eternal-data.info | 2 |
3 files changed, 10 insertions, 3 deletions
diff --git a/games/marathon-eternal-data/README b/games/marathon-eternal-data/README index 7cb31be705a08..0caa123aea5dc 100644 --- a/games/marathon-eternal-data/README +++ b/games/marathon-eternal-data/README @@ -6,7 +6,7 @@ Marathon engine. It continues the story of the Marathon trilogy, and is a nearly total conversion, featuring: * Fifty-two new levels, some revisiting familiar locations from - the original Marathon trilogy. + the original Marathon trilogy. * Over six hundred fifty new high-resolution textures, including a dozen original landscape textures, from a variety of human and alien environments. diff --git a/games/marathon-eternal-data/marathon-eternal-data.SlackBuild b/games/marathon-eternal-data/marathon-eternal-data.SlackBuild index c80802f33b143..aa236e38fdb7e 100644 --- a/games/marathon-eternal-data/marathon-eternal-data.SlackBuild +++ b/games/marathon-eternal-data/marathon-eternal-data.SlackBuild @@ -25,7 +25,7 @@ PRGNAM=marathon-eternal-data VERSION=${VERSION:-1.1.0} SRCVER=$(printf %s "$VERSION" | tr -d .) -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} ARCH=noarch @@ -90,6 +90,13 @@ rm -rf $DATADIR/__MACOSX # Remove unneeded hidden files find $DATADIR -name ".[^.]*" -mindepth 1 -print0 | xargs -0r rm -rf +# 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 diff --git a/games/marathon-eternal-data/marathon-eternal-data.info b/games/marathon-eternal-data/marathon-eternal-data.info index 20d487c2b3326..ddadd0cb66eaa 100644 --- a/games/marathon-eternal-data/marathon-eternal-data.info +++ b/games/marathon-eternal-data/marathon-eternal-data.info @@ -7,4 +7,4 @@ DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="alephone" MAINTAINER="Hunter Sezen" -EMAIL="orbea@fredslev.dk"
\ No newline at end of file +EMAIL="orbea@fredslev.dk" |