# Template file for 'webkitgtk'
pkgname=webkitgtk
version=2.0.3
revision=2
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=9bf8a32afbf087c4fc2c652b193a52c44b180735ba9c7c8db88137904d458e1b

build_style=gnu-configure
configure_args="--with-gtk=3.0 --enable-introspection"

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

makedepends="libjpeg-turbo-devel libpng-devel>=1.6 sqlite-devel
 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>=3.8 libsoup-devel>=2.42 ${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
	}
}

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