# $Id: PKGBUILD 153905 2012-03-20 12:10:42Z ibiru $ # Maintainer: Andreas Radke pkgbase=libwebkit pkgname=(libwebkit libwebkit3) pkgver=1.7.92 pkgrel=1 pkgdesc="An opensource web content engine" arch=('i686' 'x86_64') url="http://webkitgtk.org/" license=('custom') depends=('libxt' 'libxslt' 'sqlite3' 'icu' 'gstreamer0.10-base' 'libsoup' 'enchant' 'libgl') makedepends=('gperf' 'gobject-introspection' 'python2' 'gtk2' 'gtk3' 'mesa') options=('!libtool' '!emptydirs') source=(http://webkitgtk.org/webkit-$pkgver.tar.xz) sha256sums=('b5f7b9eef333609d457a0e6b335ff8d9e31c92459019b8aa80e1e24767601bb0') build() { cd "$srcdir/webkit-$pkgver" mkdir build-gtk{2,3} ( cd build-gtk2 && _build --with-gtk=2.0 ) ( cd build-gtk3 && _build --with-gtk=3.0 ) } _build() { PYTHON=/usr/bin/python2 ../configure --prefix=/usr \ --enable-introspection \ --with-font-backend=freetype \ --with-unicode-backend=icu \ --enable-geolocation=no \ --enable-spellcheck "$@" make all stamp-po } package_libwebkit() { pkgdesc+=" (for GTK2)" depends+=(gtk2) cd "$srcdir/webkit-$pkgver/build-gtk2" make DESTDIR="$pkgdir" install install -Dm644 ../Source/WebKit/LICENSE "$pkgdir/usr/share/licenses/libwebkit/LICENSE" } package_libwebkit3() { pkgdesc+=" (for GTK3)" depends+=(gtk3) cd "$srcdir/webkit-$pkgver/build-gtk3" make DESTDIR="$pkgdir" install install -Dm644 ../Source/WebKit/LICENSE "$pkgdir/usr/share/licenses/libwebkit3/LICENSE" }