games/typhoon_2001: Fix doc dir.

Signed-off-by: B. Watson <urchlay@slackware.uk>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2023-01-07 23:14:57 -05:00 committed by Willy Sudiarto Raharjo
parent 00f7965278
commit 1195b77643
No known key found for this signature in database
GPG key ID: 3F617144D7238786

View file

@ -11,6 +11,8 @@
# typhoon.cfg needs to be a real file and be writable by the user.
# (it will be created the first time the game is run).
# 20230107 bkw: BUILD=4, forgot the SlackBuild in the doc dir.
# 20211216 bkw: BUILD=3
# - make sound work OOTB: run binary with aoss wrapper.
@ -23,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=typhoon_2001
VERSION=${VERSION:-r3992}
BUILD=${BUILD:-3}
BUILD=${BUILD:-4}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -41,6 +43,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION
set -e
rm -fr $TMP/$PRGNAM $PKG $TMP/$PRGNAM-$VERSION
@ -61,11 +65,12 @@ chmod 755 typhoon
# OK, put everything where it goes in a proper Slack package...
mkdir -p $PKG/usr/share/games/$PRGNAM \
$PKG/usr/libexec \
$PKG/usr/doc/$PRGNAM-$VERSION \
$PKGDOC \
$PKG/install \
$PKG/usr/games
cp -a readme_linux.txt $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild
cp -a readme_linux.txt $PKGDOC
cp -a typhoon $PKG/usr/libexec
cp -a game *.mod *.dat $PKG/usr/share/games/$PRGNAM