libraries/td_lib: Add .pc file to package.

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

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2024-04-23 21:12:02 -04:00 committed by Willy Sudiarto Raharjo
parent 1b2e32d1da
commit 712f6168af
No known key found for this signature in database
GPG key ID: 3F617144D7238786

View file

@ -12,11 +12,17 @@
# path of least resistance is to break this library out into its own
# build, even though nothing else besides ded uses it.
# 20240423 bkw, BUILD=2: add missing .pc file to package. I thought
# ded was compiling OK without it, but it was actually pulling in
# td_lib from $TMP, not the installed package... which meant building
# td_lib followed by ded seemed to work, but building td_lib, then "rm
# -rf /tmp/SBo", *then* building ded would fail. Grr.
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=td_lib
VERSION=${VERSION:-20230122}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -84,6 +90,11 @@ CXXFLAGS="$SLKCFLAGS" \
make -j1
make -j1 install DESTDIR=$PKG
# 20240423 bkw: make install doesn't install this, ded needs it.
PC=$PKG/usr/lib$LIBDIRSUFFIX/pkgconfig
mkdir -p $PC
cp -a support/$PRGNAM.pc $PC
PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION
mkdir -p $PKGDOC
cp -a CHANGES COPYING README $PKGDOC