#Packager: George Vlahavas <vlahavas~at~gmail~dot~com>
#Previous packager: Christian Dersch <chrisdersch~at~googlemail~dot~com>

pkgname=webkit
pkgver=1.8.3
pkgrel=1rl
source=("http://webkitgtk.org/releases/webkit-$pkgver.tar.xz")
url=http://www.webkit.org
docs=("ChangeLog" "INSTALL" "LICENSE" "README")

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"WebKit (Web Browser Engine)"
"WebKit is an open source web browser engine. WebKit is also the name"
"of the Mac OS X system framework version of the engine that's used by"
"Safari, Dashboard, Mail, and many other OS X applications. WebKit's"
"HTML and JavaScript code began as a branch of the KHTML and KJS"
"libraries from KDE. "
"This package contains the GTK port of WebKit."
""
"http://webkit.org  http://webkitgtk.org"
)


build() {
	cd $startdir/src/webkit-$pkgver
	./configure --prefix=/usr \
		--libdir=/usr/lib${LIBDIRSUFFIX} \
		--localstatedir=/var \
		--sysconfdir=/etc \
		--disable-static \
		--enable-database \
		--enable-icon-database \
		--enable-video \
		--enable-svg \
		--disable-geolocation \
		--enable-gtk-doc=no \
		--enable-gtk-doc-html=no \
		--enable-gtk-doc-pdf=no \
		--with-gtk=2.0 \
		--build=$arch-slackware-linux || return 1
	make -j $numjobs || return 1
	make install DESTDIR=$startdir/pkg
}