#Packager: Richard Lapointe <richard~at~laprjns~dot~com>

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

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
" WebKitGTK+ (GTK+ port of the WebKit)"
"WebKit/GTK+ is the new GTK+ port of the WebKit, an open-source web"
"content engine that powers numerous applications such as web"
"browsers, email clients, feed readers, web and text editors, and a"
"whole lot more."
""
"http://webkit.org  http://webkitgtk.org"
)


build() {
	cd $startdir/src/${_pkgname}-$pkgver

	cmake 	-DPORT=GTK \
			-DCMAKE_BUILD_TYPE=Release \
			-DCMAKE_SKIP_RPATH=ON \
			-DCMAKE_INSTALL_PREFIX=/usr \
        	-DLIB_INSTALL_DIR=/usr/lib${LIBDIRSUFFIX} \
			-DLIBEXEC_INSTALL_DIR=/usr/lib${LIBDIRSUFFIX}/webkit2gtk-4.0 \
        	-DENABLE_GEOLOCATION=OFF \
        	-DUSE_LIBHYPHEN=OFF \
       		-DENABLE_GTKDOC=OFF \
       		../webkitgtk-$pkgver
	make -j $numjobs || return 1
	make install DESTDIR=$startdir/pkg
}