xtrans: set PKGCONFIG directory to /usr/lib/pkgconfig

xtrans does not allow pkgconfigdir to be set independently of
datadir. If datadir is changed to /usr/lib instead of /usr/share - then
the aclocal files are also placed into /usr/lib - causing an error when
aclocal and its subordinate programs are run.
This commit is contained in:
heitbaum 2022-02-06 06:50:48 +00:00
parent 65e42b9492
commit 2d3a2e620e

View File

@ -13,6 +13,11 @@ PKG_LONGDESC="Abstract network code for X."
PKG_CONFIGURE_OPTS_TARGET="--without-xmlto"
pre_configure_target() {
sed -i 's|^pkgconfigdir = .*|pkgconfigdir = /usr/lib/pkgconfig|' ${PKG_BUILD}/Makefile.am
sed -i 's|^pkgconfigdir = .*|pkgconfigdir = /usr/lib/pkgconfig|' ${PKG_BUILD}/Makefile.in
}
post_makeinstall_target() {
mkdir -p ${SYSROOT_PREFIX}/usr/lib/pkgconfig
cp xtrans.pc ${SYSROOT_PREFIX}/usr/lib/pkgconfig