# $Id$ # Maintainer: Andreas Radke pkgbase=webkitgtk pkgname=(webkitgtk webkitgtk2) pkgver=2.2.5 pkgrel=3 pkgdesc="GTK+ Web content engine library" arch=(i686 x86_64) url="http://webkitgtk.org/" license=(custom) depends=(libxt libxslt sqlite libsoup enchant libgl geoclue gst-plugins-base-libs libsecret libwebp harfbuzz-icu) makedepends=(gtk3 gtk2 gperf gobject-introspection python mesa ruby gtk-doc) optdepends=('gst-plugins-base: free media decoding' 'gst-plugins-good: media decoding' 'gst-libav: nonfree media decoding') options=(!emptydirs) source=(http://webkitgtk.org/releases/$pkgbase-${pkgver}.tar.xz upstream-issue-129784-patch-225958.patch) sha256sums=('c710994a1ed0ec78f746a05ae7dc65369ed56d7475f0de576ca7a73ad9c6e670' 'b912469b2da07d54945fa7ffb3dd0815525a6c60413a350c21894b71e4a699a5') prepare() { mkdir build-gtk{,2} } _build() ( _ver="$1"; shift cd "${pkgbase}-${pkgver}/" ls -lah patch -p0 -i ../upstream-issue-129784-patch-225958.patch cd .. cd build-${_ver} ../$pkgbase-$pkgver/configure --prefix=/usr \ --libexecdir=/usr/lib/webkit${_ver} \ --enable-introspection \ "$@" # https://bugzilla.gnome.org/show_bug.cgi?id=655517 sed -i 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool make all stamp-po ) build() { _build gtk --enable-gtk-doc _build gtk2 --disable-webkit2 --with-gtk=2.0 } package_webkitgtk() { depends+=(gtk3) optdepends+=('gtk2: Netscape plugin support') provides=("webkitgtk3=${pkgver}" "libwebkit3=${pkgver}") conflicts=(webkitgtk3 libwebkit3) replaces=(webkitgtk3 libwebkit3) make -C build-gtk -j1 DESTDIR="$pkgdir" install install -Dm644 $pkgbase-$pkgver/Source/WebKit/LICENSE \ "$pkgdir/usr/share/licenses/webkitgtk/LICENSE" } package_webkitgtk2() { pkgdesc+=" for GTK2" depends+=(gtk2) provides=("libwebkit=${pkgver}") conflicts=(libwebkit) replaces=(libwebkit) make -C build-gtk2 -j1 DESTDIR="$pkgdir" install install -Dm644 $pkgbase-$pkgver/Source/WebKit/LICENSE \ "$pkgdir/usr/share/licenses/webkitgtk2/LICENSE" }