summaryrefslogtreecommitdiffstats
path: root/games/advancemame/advancemame.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/advancemame/advancemame.SlackBuild')
-rw-r--r--games/advancemame/advancemame.SlackBuild29
1 files changed, 13 insertions, 16 deletions
diff --git a/games/advancemame/advancemame.SlackBuild b/games/advancemame/advancemame.SlackBuild
index aa9c18385a..9384419a66 100644
--- a/games/advancemame/advancemame.SlackBuild
+++ b/games/advancemame/advancemame.SlackBuild
@@ -4,10 +4,12 @@
# Originally written by seb (email removed)
-# Now maintained by B. Watson <yalhcru@gmail.com>. Original version
+# Now maintained by B. Watson <urchlay@slackware.uk>. Original version
# had no license, modified version released under the WTFPL. See
# http://www.wtfpl.net/txt/copying/ for details.
+# 20240320 bkw: update for v3.10
+# 20220401 bkw: BUILD=3, add SlackBuild to doc dir
# 20211004 bkw: BUILD=2, fix for -current
# 20180910 bkw: Update for v3.9
# 20180702 bkw: Update for v3.8
@@ -28,8 +30,8 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=advancemame
-VERSION=${VERSION:-3.9}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-3.10}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -73,15 +75,8 @@ rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
-find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
- \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
-
-# 20180702 bkw: This file got left out of the 3.8 release tarball. It
-# xzips down to 8.5K, so just include it here (taken from upstream git).
-JOVER="joverride.dat"
-if [ -e $CWD/$JOVER.xz -a ! -e advance/linux/$JOVER ]; then
- xzcat $CWD/$JOVER.xz > advance/linux/$JOVER
-fi
+find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} + -o \
+ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} +
if [ "${SDL2:-yes}" != "yes" ]; then
SDL2OPT="--enable-sdl --disable-sdl2"
@@ -94,9 +89,6 @@ PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION
# but the link fails. advancemame already builds about 8-10x as fast as
# mame without it, so not worth worrying about this.
-# 20211004 bkw: upstream commit f8688cae needed for -current.
-patch -p1 < $CWD/compilefix.diff
-
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@@ -117,7 +109,10 @@ make
# into them, resulting in a mess.
make -j1 install prefix=$PKG/usr bindir=$PKG/usr/games docdir=$PKGDOC
-# Binaries are installed stripped. Man pages are in the wrong section!
+# 20240320 bkw: in 3.9, binaries were installed stripped. Not so in 3.10.
+strip $PKG/usr/games/*
+
+# Man pages are in the wrong section!
mv $PKG/usr/man/man1 $PKG/usr/man/man6
sed -i '/^\.TH.* 1$/s,1$,6,' $PKG/usr/man/man6/*.1
rename .1 .6 $PKG/usr/man/man6/*.1
@@ -131,6 +126,8 @@ ln -s advmame.6.gz $PKG/usr/man/man6/advmess.6.gz
mv $PKGDOC/advance/* $PKGDOC
rmdir $PKGDOC/advance
+cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild
+
# HISTORY, README, RELEASE are identical to history.txt, readme.txt,
# release.txt which are already installed, but the license doesn't have
# a lowercase.txt equivalent: