diff options
author | B. Watson <urchlay@slackware.uk> | 2023-01-03 00:58:54 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-01-07 08:13:41 +0700 |
commit | 39c0cdd602a0f6d2297b3c6590e6dc44334855de (patch) | |
tree | d8e3ee4c2bddc603f951769197b1fac17f7b7dea /development/obcpl | |
parent | cf9e263eeddb2b2c88027721daf18a15f1c44704 (diff) |
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>
Diffstat (limited to 'development/obcpl')
-rw-r--r-- | development/obcpl/obcpl.SlackBuild | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/development/obcpl/obcpl.SlackBuild b/development/obcpl/obcpl.SlackBuild index 271ee867aeb80..77595517e23fc 100644 --- a/development/obcpl/obcpl.SlackBuild +++ b/development/obcpl/obcpl.SlackBuild @@ -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 |