summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author B. Watson2022-05-05 20:33:32 +0200
committer Willy Sudiarto Raharjo2022-05-14 14:27:42 +0200
commitcd9c67229604f6f159d1bb682d85ce88938be8ab (patch)
tree40eecb992fce893b52d1b1ddd520b217ec4762d5
parent7c63677bfbf5a086f66360a5ea0c06851fdc324f (diff)
downloadslackbuilds-cd9c67229604f6f159d1bb682d85ce88938be8ab.tar.gz
games/nsuds: Fix docs.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--games/nsuds/nsuds.SlackBuild15
1 files changed, 12 insertions, 3 deletions
diff --git a/games/nsuds/nsuds.SlackBuild b/games/nsuds/nsuds.SlackBuild
index ac6c560b24..ad5b426249 100644
--- a/games/nsuds/nsuds.SlackBuild
+++ b/games/nsuds/nsuds.SlackBuild
@@ -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 | \