mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
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:
parent
cf9e263eed
commit
39c0cdd602
1 changed files with 12 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue