# Template file for 'qt5-webkit'
pkgname=qt5-webkit
version=5.6.0
revision=1
build_style=qmake
wrksrc=qtwebkit-opensource-src-${version}
hostmakedepends="bison flex gperf perl python ruby pkg-config gst-plugins-good qt5-qmake"
makedepends="libwebp-devel libxslt-devel libXcomposite-devel sqlite-devel
 qt5-declarative-devel qt5-location-devel qt5-sensors-devel qt5-webchannel-devel"
depends="qt5>=5.6.0 gst-plugins-good"
nocross=yes
short_desc="A cross-platform application and UI framework (QT5) - WebKit2"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-3, LGPL-2.1"
homepage="http://qt.io"
distfiles="http://download.qt.io/development_releases/qt/${version%.*}/${version}-rc/submodules/qtwebkit-opensource-src-${version}.tar.xz"
checksum=3376b4e2f8a0bde3f6db8e0b3dc0d8104350126f4090e2fc8832a0a99cbc9fed

pre_configure() {
	# Generate headers
	syncqt.pl-qt5 -version 5.6.0 Source/sync.profile
}

qt5-webkit-devel_package() {
	short_desc+=" (development)"
	depends="${sourcepkg}>=${version}_${revision}"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/*.so
		vmove usr/lib/*.prl
		vmove usr/lib/pkgconfig
	}
}
