summaryrefslogtreecommitdiff
path: root/games/oolite/oolite.SlackBuild
diff options
context:
space:
mode:
authorJohannes Schoepfer <slackbuilds[at]schoepfer[dot]info>2018-05-06 15:20:16 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-05-12 06:58:22 +0700
commitf5539bb8a451c00e87cfd6d305178e5aab549f07 (patch)
tree16dcf9ac2932b1a4af0171a6a79e0e8fe8c53fb4 /games/oolite/oolite.SlackBuild
parentabcffcb07554a1d2854b7d7a2b210e23020f241b (diff)
downloadslackbuilds-f5539bb8a451c00e87cfd6d305178e5aab549f07.tar.gz
games/oolite: Updated for version 1.86.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'games/oolite/oolite.SlackBuild')
-rw-r--r--games/oolite/oolite.SlackBuild55
1 files changed, 30 insertions, 25 deletions
diff --git a/games/oolite/oolite.SlackBuild b/games/oolite/oolite.SlackBuild
index f57b9aee21..9002397162 100644
--- a/games/oolite/oolite.SlackBuild
+++ b/games/oolite/oolite.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for oolite
-# Copyright 2016 Johannes Schoepfer, Herrenberg, BW, Germany
+# Copyright 2016 - 2018 Johannes Schoepfer, Germany
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=oolite
-VERSION=${VERSION:-1.84}
+VERSION=${VERSION:-1.86}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -38,10 +38,10 @@ fi
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
-OUTPUT=${OUTPUT:-/tmp}
+OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i586" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i586"
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -71,34 +71,39 @@ find -L . \
source /usr/share/GNUstep/Makefiles/GNUstep.sh
export GNUSTEP_MAKEFILES=/usr/share/GNUstep/Makefiles
-sed -i "/ADDITIONAL_OBJSLKFLAGS/s/=/= -fobjc-exceptions ${SLKFLAGS}/" GNUmakefile
-make -f libjs.make debug=no
-make -f Makefile ESPEAK=yes release-deployment
+sed -i "/ADDITIONAL_OBJSLKFLAGS/s/=/= -fobjc-exceptions ${SLKCFLAGS}/" GNUmakefile
+make -f libjs.make debug=no
+make -f Makefile ESPEAK=yes release-deployment
mkdir -p $PKG/usr/share/oolite
-mv oolite.app/* $PKG/usr/share/oolite/
+cp -a oolite.app/* $PKG/usr/share/oolite/
-#install startscript
-mkdir $PKG/usr/bin
-cat << EOF > $PKG/usr/bin/oolite
-#!/bin/sh
-
-# Start oolite
+find $PKG -type f -exec file {} + | fgrep -e "executable" -e "shared object" | fgrep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-cd /usr/share/oolite
-./oolite
+mkdir $PKG/usr/games
+cat << 'EOF' > $PKG/usr/games/oolite
+#!/bin/bash
+source /usr/share/GNUstep/Makefiles/GNUstep.sh
+[ ! -d ~/.Oolite/AddOns ] && mkdir -p ~/.Oolite/AddOns
+[ ! -d ~/GNUstep/Library/ApplicationSupport/Oolite/ManagedAddOns ] && \
+ mkdir -p ~/GNUstep/Library/ApplicationSupport/Oolite/ManagedAddOns
+/usr/share/oolite/oolite "$@"
EOF
-chmod 755 $PKG/usr/bin/oolite
+chmod 755 $PKG/usr/games/oolite
-# icon
-install -D -m644 installers/FreeDesktop/oolite-icon.png $PKG/usr/share/pixmaps/oolite-icon.png
-# .desktop file
-install -D -m644 installers/FreeDesktop/oolite.desktop $PKG/usr/share/applications/oolite.desktop
-# documentation
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-install -D -m644 Doc/AdviceForNewCommanders.pdf Doc/OoliteReadMe.pdf Doc/OoliteRS.pdf $PKG/usr/doc/$PRGNAM-$VERSION
+cp installers/FreeDesktop/oolite-icon.png $PKG/usr/share/pixmaps
+cp installers/FreeDesktop/oolite.desktop $PKG/usr/share/applications
-find $PKG -type f -exec file {} + | fgrep -e "executable" -e "shared object" | fgrep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+mkdir -p $PKG/usr/man/man6
+cp debian/oolite.6 $PKG/usr/man/man6
+find $PKG/usr/man -type f -exec gzip -9 {} +
+for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ Doc/{*.txt,*.TXT,*.pdf} \
+ $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/doinst.sh > $PKG/install/doinst.sh