summaryrefslogtreecommitdiffstats
path: root/games/atari800/atari800.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/atari800/atari800.SlackBuild')
-rw-r--r--games/atari800/atari800.SlackBuild23
1 files changed, 16 insertions, 7 deletions
diff --git a/games/atari800/atari800.SlackBuild b/games/atari800/atari800.SlackBuild
index 404aaf2b06..9a2db8549e 100644
--- a/games/atari800/atari800.SlackBuild
+++ b/games/atari800/atari800.SlackBuild
@@ -6,6 +6,9 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20191126 bkw:
+# - update for v4.1.0. script can still build VERSION=3.1.0 or 4.0.0.
+
# 20180703 bkw:
# - update for v4.0.0. script can still build VERSION=3.1.0 if needed.
# - update README to mention the new Altirra OS stuff.
@@ -14,7 +17,7 @@
# - minor script tweaks.
PRGNAM=atari800
-VERSION=${VERSION:-4.0.0}
+VERSION=${VERSION:-4.1.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -60,19 +63,18 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || \
+ tar xvf $CWD/$PRGNAM-$VERSION-src.tgz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
- -o -perm 511 \) -exec chmod 755 {} \+ -o \
- \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+
+ \( -perm /111 -a \! -perm 755 \) -exec chmod 755 {} + -o \
+ \! -perm /111 -exec chmod 644 {} +
DOCDIR=/usr/doc/$PRGNAM-$VERSION
PKGDOCDIR=$PKG/$DOCDIR
-cd src
+[ ! -f configure ] && cd src
# Include some optional extras. The monitor stuff is nice if you're
# developing code for the Atari, and the extra sound stuff makes for
@@ -99,10 +101,17 @@ CXXFLAGS="$SLKCFLAGS" \
--docdir=$DOCDIR \
--build=$ARCH-slackware-linux
+# in 4.0.0 and 4.1.0, the --enable-volonlysound is supposed to
+# define this, but for some reason it doesn't.
+#[ -e src/config.h ] && echo '#define VOL_ONLY_SOUND 1' >> src/config.h
+# Unfortunately, forcibly defining it like that, doesn't make the volume
+# only sound actually work. Must determine WTF's going on here.
+
make
make install DOC_DIR=$DOCDIR MAN_DIR=/usr/man/man1 DESTDIR=$PKG
gzip $PKG/usr/man/man1/$PRGNAM.1
cat $CWD/$PRGNAM.SlackBuild > $PKGDOCDIR/$PRGNAM.SlackBuild
+[ ! -d ../DOC ] && cd src
# 'make install' misses a lot of the docs, let's add them.
cd ../DOC