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.SlackBuild31
1 files changed, 13 insertions, 18 deletions
diff --git a/games/advancemame/advancemame.SlackBuild b/games/advancemame/advancemame.SlackBuild
index 725bf9a5d4..9384419a66 100644
--- a/games/advancemame/advancemame.SlackBuild
+++ b/games/advancemame/advancemame.SlackBuild
@@ -4,10 +4,13 @@
# 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
# 20180206 bkw: Update for v3.7
@@ -27,7 +30,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=advancemame
-VERSION=${VERSION:-3.9}
+VERSION=${VERSION:-3.10}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -40,9 +43,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# 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
@@ -75,18 +75,8 @@ rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
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 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -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"
@@ -119,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
@@ -133,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: