summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorHunter Sezen <orbea@fredslev.dk>2018-04-02 20:06:40 +0000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-04-07 08:13:09 +0700
commit4e97a1fccb5141015920ced7cf709958bc92ccce (patch)
tree51063fded20a655a1adef4b3d636ea0fbdf6bf65 /games
parent4b2199c2f988804b09e0fc91d6ecfa0ad08b1160 (diff)
downloadslackbuilds-4e97a1fccb5141015920ced7cf709958bc92ccce.tar.gz
games/marathon-rubicon-data: Fixed for Windows formatted scripts.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'games')
-rw-r--r--games/marathon-rubicon-data/marathon-rubicon-data.SlackBuild11
1 files changed, 9 insertions, 2 deletions
diff --git a/games/marathon-rubicon-data/marathon-rubicon-data.SlackBuild b/games/marathon-rubicon-data/marathon-rubicon-data.SlackBuild
index fe708b68e1..9e496caa97 100644
--- a/games/marathon-rubicon-data/marathon-rubicon-data.SlackBuild
+++ b/games/marathon-rubicon-data/marathon-rubicon-data.SlackBuild
@@ -24,7 +24,7 @@
PRGNAM=marathon-rubicon-data
VERSION=${VERSION:-20060807} # Last modified date from the zipfile's http header
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
ARCH=noarch
@@ -75,7 +75,7 @@ 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=Marathon Rubicon X
+Name=Marathon Rubicon X
Exec=$WRAPPER
Icon=alephone
Type=Application
@@ -89,6 +89,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