aboutsummaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorHunter Sezen <orbea@fredslev.dk>2018-04-02 20:03:30 +0000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-04-07 08:13:09 +0700
commit4b2199c2f988804b09e0fc91d6ecfa0ad08b1160 (patch)
treec59b951491fbcf963aaa27627c42e1cceb3e6cde /games
parent7ec3df19737aaa1ec555f62a43624cc2e1f2bfaa (diff)
games/marathon-eternal-data: Fixed for Windows formatted scripts.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'games')
-rw-r--r--games/marathon-eternal-data/README2
-rw-r--r--games/marathon-eternal-data/marathon-eternal-data.SlackBuild9
-rw-r--r--games/marathon-eternal-data/marathon-eternal-data.info2
3 files changed, 10 insertions, 3 deletions
diff --git a/games/marathon-eternal-data/README b/games/marathon-eternal-data/README
index 7cb31be705a0..0caa123aea5d 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 c80802f33b14..aa236e38fdb7 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 20d487c2b332..ddadd0cb66ea 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"