summaryrefslogtreecommitdiffstats
path: root/games/nsuds/nsuds.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/nsuds/nsuds.SlackBuild')
-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 | \