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
1 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'gsettings-qt' # Template file for 'gsettings-qt'
pkgname=gsettings-qt pkgname=gsettings-qt
version=0.1+17.10.20170824 version=0.1+17.10.20170824
revision=2 revision=3
build_style=qmake build_style=qmake
hostmakedepends="qt5-qmake pkg-config qt5-declarative" hostmakedepends="qt5-qmake pkg-config qt5-declarative"
makedepends="qt5-devel qt5-declarative-devel glib-devel" makedepends="qt5-devel qt5-declarative-devel glib-devel"
@ -26,10 +26,10 @@ pre_configure() {
post_install() { post_install() {
if [ "$CROSS_BUILD" ]; then 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 rm -r ${DESTDIR}/usr/${XBPS_CROSS_TRIPLET}/usr/tests
cp -a ${DESTDIR}/usr/${XBPS_CROSS_TRIPLET}/usr/* ${DESTDIR}/usr/ 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 else
rm -r ${DESTDIR}/usr/tests rm -r ${DESTDIR}/usr/tests
fi fi