aboutsummaryrefslogtreecommitdiff
path: root/games/atari800/atari800.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2020-03-03 16:04:22 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-03-07 14:06:33 +0700
commit238c1dbc18585ac5922af735509c8d2d000aa813 (patch)
treeaefcbe9c1a30b58936da274edd46bd6469c7ca53 /games/atari800/atari800.SlackBuild
parent1cf00b202d7811fee242088b01a9de268e982214 (diff)
games/atari800: Updated for version 4.2.0.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'games/atari800/atari800.SlackBuild')
-rw-r--r--games/atari800/atari800.SlackBuild18
1 files changed, 15 insertions, 3 deletions
diff --git a/games/atari800/atari800.SlackBuild b/games/atari800/atari800.SlackBuild
index 9a2db8549e2a..82e717f756bf 100644
--- a/games/atari800/atari800.SlackBuild
+++ b/games/atari800/atari800.SlackBuild
@@ -6,6 +6,10 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20200303 bkw:
+# - update for 4.2.0, can still build 3.1.0, 4.0.0, 4.1.0.
+# - move binary to /usr/games, man page to section 6.
+
# 20191126 bkw:
# - update for v4.1.0. script can still build VERSION=3.1.0 or 4.0.0.
@@ -17,7 +21,7 @@
# - minor script tweaks.
PRGNAM=atari800
-VERSION=${VERSION:-4.1.0}
+VERSION=${VERSION:-4.2.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -48,7 +52,7 @@ else
LIBDIRSUFFIX=""
fi
-# allow bulding without OpenGL, in case someone needs it
+# allow building without OpenGL, in case someone needs it
if [ "${OPENGL:-yes}" = "yes" ]; then
GLWITH="with"
else
@@ -97,6 +101,7 @@ CXXFLAGS="$SLKCFLAGS" \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
+ --bindir=/usr/games \
--mandir=/usr/man \
--docdir=$DOCDIR \
--build=$ARCH-slackware-linux
@@ -109,7 +114,14 @@ CXXFLAGS="$SLKCFLAGS" \
make
make install DOC_DIR=$DOCDIR MAN_DIR=/usr/man/man1 DESTDIR=$PKG
-gzip $PKG/usr/man/man1/$PRGNAM.1
+
+# 20200303 bkw: move man page to section 6 (games)
+mkdir -p $PKG/usr/man/man6
+sed '/^\.TH *ATARI800 *1/s| 1 | 6 |' $PKG/usr/man/man1/$PRGNAM.1 | \
+ gzip -9c > \
+ $PKG/usr/man/man6/$PRGNAM.6.gz
+rm -rf $PKG/usr/man/man1
+
cat $CWD/$PRGNAM.SlackBuild > $PKGDOCDIR/$PRGNAM.SlackBuild
[ ! -d ../DOC ] && cd src