summaryrefslogtreecommitdiffstats
path: root/games/oolite
diff options
context:
space:
mode:
Diffstat (limited to 'games/oolite')
-rw-r--r--games/oolite/oolite.SlackBuild16
-rw-r--r--games/oolite/oolite.info2
2 files changed, 14 insertions, 4 deletions
diff --git a/games/oolite/oolite.SlackBuild b/games/oolite/oolite.SlackBuild
index 04d0866d96..e93dc5ce54 100644
--- a/games/oolite/oolite.SlackBuild
+++ b/games/oolite/oolite.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for oolite
@@ -22,10 +22,13 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=oolite
VERSION=${VERSION:-1.90}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -35,7 +38,14 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
+# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
+# the name of the created package would be, and then exit. This information
+# could be useful to other scripts.
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -119,4 +129,4 @@ cat $CWD/doinst.sh > $PKG/install/doinst.sh
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -p -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -p -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/games/oolite/oolite.info b/games/oolite/oolite.info
index a7b6028400..d83bfa7d18 100644
--- a/games/oolite/oolite.info
+++ b/games/oolite/oolite.info
@@ -5,6 +5,6 @@ DOWNLOAD="https://github.com/OoliteProject/oolite/releases/download/1.90/oolite-
MD5SUM="c34c6f88606be75c90cc52c5a4173611"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="espeak gnustep-base OpenAL"
+REQUIRES="espeak gnustep-base"
MAINTAINER="Johannes Schoepfer"
EMAIL="slackbuilds@schoepfer.info"