development/obcpl: Fix broken symlink in 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-03 00:58:54 -05:00 committed by Willy Sudiarto Raharjo
parent cf9e263eed
commit 39c0cdd602
No known key found for this signature in database
GPG key ID: 3F617144D7238786

View file

@ -6,6 +6,8 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
# 20230103 bkw: BUILD=3, fix broken LIBHDR symlink in doc dic.
# 20210906 bkw: BUILD=2
# - fix build on -current
# - add missing docs to docdir
@ -16,7 +18,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=obcpl
VERSION=${VERSION:-0.9.8}
BUILD=${BUILD:-2}
BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -124,12 +126,17 @@ cd ..
# util/ is included as example code. Also our own examples/ dir.
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/examples
cp -a C* README doc/*.txt util $PKG/usr/doc/$PRGNAM-$VERSION
PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION
mkdir -p $PKGDOC/examples
cp -a C* README doc/*.txt util $PKGDOC
for i in $CWD/examples/*; do
cat $i > $PKG/usr/doc/$PRGNAM-$VERSION/examples/$( basename $i )
cat $i > $PKGDOC/examples/$( basename $i )
done
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild
# 20230103 bkw: fix broken symlink in util.
rm -f $PKGDOC/util/LIBHDR
ln -s ../../../lib$LIBDIRSUFFIX/$PRGNAM/LIBHDR $PKGDOC/util/LIBHDR
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc