games/nsuds: Fix docs.

Signed-off-by: B. Watson <yalhcru@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2022-05-05 14:33:32 -04:00 committed by Willy Sudiarto Raharjo
parent 7c63677bfb
commit cd9c672296
No known key found for this signature in database
GPG key ID: 3F617144D7238786

View file

@ -2,6 +2,9 @@
# Slackware build script for nsuds
# Written by Dan-Simon Myrland <dansimon@radiotube.org>
# 20220505 bkw: Modified by SlackBuilds.org, BUILD=3:
# - move help doc to regular Slackware doc dir (not /usr/share/doc).
# 20220220 bkw: Modified by SlackBuilds.org, BUILD=2:
# - fix 15.0 build.
# - binary in /usr/games, man page in section 6.
@ -13,7 +16,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=nsuds
VERSION=${VERSION:-0.7B}
BUILD=${BUILD:-2}
BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -72,10 +75,16 @@ CXXFLAGS="$SLKCFLAGS" \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--bindir=/usr/games \
--mandir=/usr/man \
--datadir=/usr \
--build=$ARCH-slackware-linux
make
make install-strip DESTDIR=$PKG
# 20220505 bkw: this moves the "main" doc to our doc dir.
runmake() {
make datadir=/usr ourhelpdir=/usr/doc/$PRGNAM-$VERSION "$@"
}
runmake
runmake install-strip DESTDIR=$PKG
mkdir -p $PKG/usr/man/man6
sed '/^\.TH/s,"1","6",' $PKG/usr/man/man1/$PRGNAM.1 | \