diff options
Diffstat (limited to 'games/an/an.SlackBuild')
-rw-r--r-- | games/an/an.SlackBuild | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/games/an/an.SlackBuild b/games/an/an.SlackBuild index 294d5a8024..f41e6ff2cb 100644 --- a/games/an/an.SlackBuild +++ b/games/an/an.SlackBuild @@ -2,10 +2,14 @@ # Slackware build script for an -# 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. +# 20230707 bkw: For some reason, the Debian source switched from .xz +# to .gz compressions. Contents of the archive are identical, not +# bumping BUILD. + # 20160804 bkw: Updated to 1.2. Apparently 1.2 is a release by the # maintainer(s) of the Debian an package, not the original author... # but the old 0.95 was segfaulting when built with gcc5. Also, the @@ -27,9 +31,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 @@ -41,16 +42,12 @@ OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i586" ]; then SLKCFLAGS="-O2 -march=i586 -mtune=i686" - LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" else SLKCFLAGS="-O2" - LIBDIRSUFFIX="" fi set -e @@ -66,14 +63,11 @@ rm -rf $PKG mkdir -p $TMP $PKG/usr/{games,man/man6} $OUTPUT cd $TMP rm -rf ${PRGNAM}-${SRCVER} -tar xvf $CWD/${PRGNAM}_$TARVER.orig.tar.xz +tar xvf $CWD/${PRGNAM}_$TARVER.orig.tar.gz cd ${PRGNAM}-$SRCVER 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 {} \; +find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ + \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+ make MANDIR=/usr/man/man6 CC="gcc $SLKCFLAGS" make install DESTDIR=$PKG MANDIR=$PKG/usr/man/man6 |