gsettings-qt: fix gsettings-qt.pc before copying

This commit is contained in:
Jürgen Buchmüller 2020-09-01 14:40:23 +02:00
parent ccedd46555
commit 7770286f0c

View file

@ -1,7 +1,7 @@
# Template file for 'gsettings-qt'
pkgname=gsettings-qt
version=0.1+17.10.20170824
revision=2
revision=3
build_style=qmake
hostmakedepends="qt5-qmake pkg-config qt5-declarative"
makedepends="qt5-devel qt5-declarative-devel glib-devel"
@ -26,10 +26,10 @@ pre_configure() {
post_install() {
if [ "$CROSS_BUILD" ]; then
vsed -i ${DESTDIR}/usr/${XBPS_CROSS_TRIPLET}/usr/lib/pkgconfig/gsettings-qt.pc \
-e "s;${XBPS_CROSS_TRIPLET}\${prefix}/;;"
rm -r ${DESTDIR}/usr/${XBPS_CROSS_TRIPLET}/usr/tests
cp -a ${DESTDIR}/usr/${XBPS_CROSS_TRIPLET}/usr/* ${DESTDIR}/usr/
vsed -i ${DESTDIR}/usr/lib/pkgconfig/gsettings-qt.pc \
-e "s;${XBPS_CROSS_TRIPLET}\${prefix}/;;"
else
rm -r ${DESTDIR}/usr/tests
fi