# Template file for 'webkitgtk'
pkgname=webkitgtk
version=2.2.2
revision=1
build_style=gnu-configure
configure_args="--with-gtk=3.0 --enable-introspection"
short_desc="GTK+3 port of the WebKit browser engine"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://webkitgtk.org/"
license="LGPL-2.1, Simplified BSD (2 clause)"
distfiles="${homepage}/releases/${pkgname}-${version}.tar.xz"
checksum=4a45768695ccded14fdc47f99dbcdb750076f55dad61560cadac7b55db0b304d

hostmakedepends="perl pkg-config intltool which gperf
 flex ruby gobject-introspection"

makedepends="
 libjpeg-turbo-devel libpng-devel>=1.6 sqlite-devel harfbuzz-devel>=0.9.19
 gst-plugins-base1-devel libsoup-devel>=2.42 libxslt-devel icu-devel>=49
 enchant-devel dbus-glib-devel geoclue-devel libwebp-devel libsecret-devel
 gtk+-devel gtk+3-devel>=3.8 libgudev-devel libXt-devel"

webkitgtk-devel_package() {
	replaces="webkit-gtk3-devel>=0"
	provides="webkit-gtk3-devel-${version}"
	depends="gtk+3-devel libsoup-devel>=2.44 ${sourcepkg}>=${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
		vmove usr/share/gir-1.0
		vmove usr/share/gtk-doc
		vmove "usr/lib/*.so"
	}
}

webkitgtk_package() {
	pkg_install() {
		vmove all
	}
}