qt5: fix cross build $wrksrc leaking
This should finally fix the cross built qt5 packages.
This commit is contained in:
parent
087c3ef05a
commit
20dd327fab
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'qt5'
|
||||
pkgname=qt5
|
||||
version=5.10.1
|
||||
revision=3
|
||||
revision=4
|
||||
wrksrc="qt-everywhere-src-${version}"
|
||||
build_style=gnu-configure
|
||||
hostmakedepends="flex ruby gperf git python perl pkg-config protobuf re2c ninja"
|
||||
|
@ -51,13 +51,13 @@ _cleanup_wrksrc_leak() {
|
|||
if [ -d "${PKGDESTDIR}/usr/lib/cmake" ]; then
|
||||
# Replace references to ${wrksrc} in cmake files
|
||||
sed -i ${PKGDESTDIR}/usr/lib/cmake/*/*.cmake \
|
||||
-e "s;${wrksrc}/qtbase/host;/usr/lib/qt5;g" \
|
||||
-e "s;${wrksrc}/host;/usr/lib/qt5;g" \
|
||||
-e "s;devices/void-${XBPS_CROSS_TRIPLET}-g++;linux-g++;g"
|
||||
fi
|
||||
if [ -d "${PKGDESTDIR}/usr/lib/pkgconfig" ]; then
|
||||
# Replace references to ${wrksrc} in pkgconfig files
|
||||
sed -i ${PKGDESTDIR}/usr/lib/pkgconfig/*.pc \
|
||||
-e "s;${wrksrc}/qtbase/host;/usr/lib/qt5;g" \
|
||||
-e "s;${wrksrc}/host;/usr/lib/qt5;g" \
|
||||
-e "s;devices/void-${XBPS_CROSS_TRIPLET}-g++;linux-g++;g"
|
||||
fi
|
||||
# Remove QMAKE_PRL_BUILD_DIR from hint files for static libraries
|
||||
|
|
Loading…
Reference in New Issue