summaryrefslogtreecommitdiffstats
path: root/games/z26/z26.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/z26/z26.SlackBuild')
-rw-r--r--games/z26/z26.SlackBuild28
1 files changed, 22 insertions, 6 deletions
diff --git a/games/z26/z26.SlackBuild b/games/z26/z26.SlackBuild
index d33236660e..e981519c85 100644
--- a/games/z26/z26.SlackBuild
+++ b/games/z26/z26.SlackBuild
@@ -7,9 +7,14 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20180123 bkw:
+# - move binary to /usr/games, man page to section 6
+# - 64-bit support via statified binary (see statify.sh)
+# - BUILD=2
+
PRGNAM=z26
VERSION=${VERSION:-2.13}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
# The distribution tarball is actually a snapshot that got
@@ -38,7 +43,9 @@ if [ "$ARCH" = "i586" ]; then
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
elif [ "$ARCH" = "x86_64" ]; then
- echo "Can't build on x86_64, sorry"
+ echo "=== $ARCH detected, using statified binary"
+else
+ echo "Can't build on $ARCH, sorry"
exit 1
fi
@@ -57,13 +64,22 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-make linux CFLAGS="$SLKCFLAGS"
+# man page belongs in section 6
+sed -i '/pod2man -c/s,-c,-s6 -c,' Makefile
+
+if [ "$ARCH" = "x86_64" ]; then
+ xz -d < $CWD/$PRGNAM.static.xz > $PRGNAM
+ chmod 755 $PRGNAM
+ cp conf/config_linux-static.mak config.mak
+else
+ make linux CFLAGS="$SLKCFLAGS"
+fi
make $PRGNAM.man
make docs
-mkdir -p $PKG/usr/bin $PKG/usr/man/man1
-install -m0755 -o root -g root $PRGNAM $PKG/usr/bin
-gzip -9c $PRGNAM.man > $PKG/usr/man/man1/$PRGNAM.1.gz
+mkdir -p $PKG/usr/games $PKG/usr/man/man6
+install -m0755 -o root -g root $PRGNAM $PKG/usr/games
+gzip -9c $PRGNAM.man > $PKG/usr/man/man6/$PRGNAM.6.gz
rm -rf doc/CVS
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION