summaryrefslogtreecommitdiffstats
path: root/games/marathon-data
diff options
context:
space:
mode:
Diffstat (limited to 'games/marathon-data')
-rw-r--r--games/marathon-data/marathon19
-rw-r--r--games/marathon-data/marathon-data.SlackBuild27
-rw-r--r--games/marathon-data/marathon-data.info8
3 files changed, 42 insertions, 12 deletions
diff --git a/games/marathon-data/marathon b/games/marathon-data/marathon
index c71ef6fb56..36eda97fef 100644
--- a/games/marathon-data/marathon
+++ b/games/marathon-data/marathon
@@ -1,6 +1,23 @@
#!/bin/sh
+# 20201026 bkw: if someone started the game without the wrapper
+# script (giving the path to the gamedata on the command line),
+# then tries to start the game again using this wrapper script,
+# it would fail to find its data files. Added ALEPHONE_DEFAULT_DATA
+# here to work around it. The issue was pointed out to me by
+# orbea, and lives here:
+# https://github.com/Aleph-One-Marathon/alephone/issues/24#issuecomment-715476894
+
ALEPHONE_DATA="/usr/share/AlephOne/gamedata/Marathon"
-export ALEPHONE_DATA
+ALEPHONE_DEFAULT_DATA="$ALEPHONE_DATA"
+export ALEPHONE_DATA ALEPHONE_DEFAULT_DATA
+
+# work around another issue found by orbea:
+# https://github.com/Aleph-One-Marathon/alephone/pull/225
+# I can't reproduce this, it may only affect -current, but I can't see
+# any harm in adding the workaround here.
+
+SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS=0
+export SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS
exec alephone "$@"
diff --git a/games/marathon-data/marathon-data.SlackBuild b/games/marathon-data/marathon-data.SlackBuild
index 1f87988270..2177b66938 100644
--- a/games/marathon-data/marathon-data.SlackBuild
+++ b/games/marathon-data/marathon-data.SlackBuild
@@ -1,19 +1,32 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for marathon-data
-# Written by B. Watson (yalhcru@gmail.com)
+# Written by B. Watson (urchlay@slackware.uk)
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20240320 bkw: update for 20240119
+# 20230716 bkw: update for 20230529
+# 20230108 bkw: update for 20221126
+# 20220622 bkw: update for 20220115
+# 20211010 bkw: update for 20210408
+
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=marathon-data
-VERSION=${VERSION:-20150620}
+VERSION=${VERSION:-20240119}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
ARCH=noarch
-CWD=$(pwd)
+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}
@@ -35,8 +48,8 @@ chown -R root:root $DATADIR
# NB: the usual find predicate is different (zipfile stores +x permissions
# on some files for no good reason)
find $DATADIR \
- \( -type f -exec chmod 644 {} \; \) -o \
- \( -type d -exec chmod 755 {} \; \)
+ \( -type f -exec chmod 644 {} \+ \) -o \
+ \( -type d -exec chmod 755 {} \+ \)
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
@@ -58,4 +71,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/games/marathon-data/marathon-data.info b/games/marathon-data/marathon-data.info
index 68f3df7415..cd4a68e4f0 100644
--- a/games/marathon-data/marathon-data.info
+++ b/games/marathon-data/marathon-data.info
@@ -1,10 +1,10 @@
PRGNAM="marathon-data"
-VERSION="20150620"
+VERSION="20240119"
HOMEPAGE="https://alephone.lhowon.org/"
-DOWNLOAD="https://github.com/Aleph-One-Marathon/alephone/releases/download/release-20150620/Marathon-20150620-Data.zip"
-MD5SUM="0d32fb35b670f0dd055f7f1c75da0952"
+DOWNLOAD="https://github.com/Aleph-One-Marathon/alephone/releases/download/release-20240119/Marathon-20240119-Data.zip"
+MD5SUM="8a7c1074d5d1ae4631f3bdc1daecb5f9"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="alephone"
MAINTAINER="B. Watson"
-EMAIL="yalhcru@gmail.com"
+EMAIL="urchlay@slackware.uk"