summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author B. Watson2024-04-24 03:12:02 +0200
committer Willy Sudiarto Raharjo2024-04-27 04:28:41 +0200
commit712f6168aff92ee29a3b590e208545966a00eb2e (patch)
tree9312607191cd7890e0e3dd5183768b8d3464d9f2
parent1b2e32d1da54b1f079798edeee3358a6926f6402 (diff)
downloadslackbuilds-712f6168aff92ee29a3b590e208545966a00eb2e.tar.gz
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>
-rw-r--r--libraries/td_lib/td_lib.SlackBuild13
1 files changed, 12 insertions, 1 deletions
diff --git a/libraries/td_lib/td_lib.SlackBuild b/libraries/td_lib/td_lib.SlackBuild
index bf0f96fd88..1f9fef6ff9 100644
--- a/libraries/td_lib/td_lib.SlackBuild
+++ b/libraries/td_lib/td_lib.SlackBuild
@@ -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