diff options
author | B. Watson <yalhcru@gmail.com> | 2018-01-23 13:50:45 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2018-01-27 07:43:52 +0700 |
commit | 217af619cac6afb4ac6f7b63d78efac273b79a08 (patch) | |
tree | ab5bf592ce65ed32465d87af2103bc10c593fd0e /games/z26/z26.SlackBuild | |
parent | 35cd4675691967bb8b0636f1365c4e48467696cb (diff) | |
download | slackbuilds-217af619cac6afb4ac6f7b63d78efac273b79a08.tar.gz |
games/z26: Add 64-bit support.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'games/z26/z26.SlackBuild')
-rw-r--r-- | games/z26/z26.SlackBuild | 28 |
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 |