qt5: fix leaking of $wrksrc into cmake files

This commit is contained in:
Juergen Buchmueller 2016-10-24 19:31:14 +02:00
parent bb8b2ba9bb
commit 42c9c7a0e7
1 changed files with 5 additions and 1 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'qt5'
pkgname=qt5
version=5.6.2
revision=1
revision=2
wrksrc="qt-everywhere-opensource-src-${version}"
homepage="http://qt.io/"
short_desc="A cross-platform application and UI framework (QT5)"
@ -90,6 +90,8 @@ _install_devel() {
rm -f ${PKGDESTDIR}/usr/lib/*.so.*
# Remove QMAKE_PRL_BUILD_DIR from *.prl files because it is the internal builddir
find ${PKGDESTDIR} -iname "*.prl" -exec sed -i "{}" -e "/^QMAKE_PRL_BUILD_DIR/d" \;
find ${PKGDESTDIR} -iname "*.cmake" -exec sed -i "{}" \
-e "s;${wrksrc}/qtbase/host/;/usr/lib/qt5/;g" \;
}
_create_config() {
@ -706,6 +708,8 @@ qt5-devel_package() {
vmove usr/lib/pkgconfig
# Remove QMAKE_PRL_BUILD_DIR from *.prl files because it is the internal builddir
find ${PKGDESTDIR} -iname "*.prl" -exec sed -i "{}" -e "/^QMAKE_PRL_BUILD_DIR/d" \;
find ${PKGDESTDIR} -iname "*.cmake" -exec sed -i "{}" \
-e "s;${wrksrc}/qtbase/host/;/usr/lib/qt5/;g" \;
}
}