diff options
-rw-r--r-- | games/marathon-rubicon-data/marathon-rubicon-data.SlackBuild | 11 |
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 |