qt-webkit: remove references to $wrksrc from .prl and .pc files

Add missing qt-devel to -devel depends.
This commit is contained in:
Alessio Sergi 2016-10-30 19:01:39 +01:00
parent ebaec0b8cc
commit d0d0747a2b

View file

@ -1,7 +1,7 @@
# Template file for 'qt-webkit' # Template file for 'qt-webkit'
pkgname=qt-webkit pkgname=qt-webkit
version=2.3.4 version=2.3.4
revision=2 revision=3
_qtver=4.8.7 _qtver=4.8.7
wrksrc="qtwebkit-${version}" wrksrc="qtwebkit-${version}"
create_wrksrc=yes create_wrksrc=yes
@ -49,11 +49,15 @@ do_install() {
make INSTALL_ROOT="${DESTDIR}" -C WebKitBuild/Release install make INSTALL_ROOT="${DESTDIR}" -C WebKitBuild/Release install
cd ../qt-everywhere-opensource-src-${_qtver}/tools/designer/src/plugins/qwebview cd ../qt-everywhere-opensource-src-${_qtver}/tools/designer/src/plugins/qwebview
make INSTALL_ROOT="${DESTDIR}" install make INSTALL_ROOT="${DESTDIR}" install
# Remove references to the build directory from .prl and .pc files
sed -i 's| -L.*/*/release||g' ${DESTDIR}/usr/lib/pkgconfig/QtWebKit.pc
sed -i '/^QMAKE_PRL_BUILD_DIR/d' ${DESTDIR}/usr/lib/libQtWebKit.prl
} }
qt-webkit-devel_package() { qt-webkit-devel_package() {
short_desc+=" - development files" short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}" depends="qt-devel ${sourcepkg}>=${version}_${revision}"
pkg_install() { pkg_install() {
vmove usr/include vmove usr/include
vmove usr/lib/*.so vmove usr/lib/*.so