From 39c0cdd602a0f6d2297b3c6590e6dc44334855de Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Tue, 3 Jan 2023 00:58:54 -0500 Subject: [PATCH] development/obcpl: Fix broken symlink in doc dir. Signed-off-by: B. Watson Signed-off-by: Willy Sudiarto Raharjo --- development/obcpl/obcpl.SlackBuild | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/development/obcpl/obcpl.SlackBuild b/development/obcpl/obcpl.SlackBuild index 271ee867ae..77595517e2 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