diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-03-04 03:52:56 +0000 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-03-04 03:52:56 +0000 |
commit | a78b434ff9cfdfb3d175c900ff622a561b84123f (patch) | |
tree | 7fe0aa5526dbda20077464989bf0b2cffc05efd3 /extra/webkitgtk | |
parent | f0127fa225ad83116fabd5f7d9df4c92cd23f6f1 (diff) |
Tue Mar 4 03:48:46 UTC 2014
Diffstat (limited to 'extra/webkitgtk')
-rw-r--r-- | extra/webkitgtk/PKGBUILD | 65 |
1 files changed, 46 insertions, 19 deletions
diff --git a/extra/webkitgtk/PKGBUILD b/extra/webkitgtk/PKGBUILD index 64290b1fd..0e32d59ca 100644 --- a/extra/webkitgtk/PKGBUILD +++ b/extra/webkitgtk/PKGBUILD @@ -1,38 +1,65 @@ -# $Id: PKGBUILD 206206 2014-02-21 18:40:49Z heftig $ +# $Id: PKGBUILD 206637 2014-03-03 22:06:04Z heftig $ # Maintainer: Andreas Radke <andyrtr@archlinux.org> -pkgname=webkitgtk +pkgbase=webkitgtk +pkgname=(webkitgtk webkitgtk2) pkgver=2.2.5 -pkgrel=1 +pkgrel=2 pkgdesc="GTK+ Web content engine library" arch=(i686 x86_64) url="http://webkitgtk.org/" license=(custom) -depends=(libxt libxslt sqlite libsoup enchant libgl geoclue gtk3 gst-plugins-base-libs +depends=(libxt libxslt sqlite libsoup enchant libgl geoclue gst-plugins-base-libs libsecret libwebp harfbuzz-icu) -makedepends=(gtk2 gperf gobject-introspection python mesa ruby gtk-doc) -optdepends=('gtk2: Netscape plugin support') -provides=("webkitgtk3=${pkgver}" "libwebkit3=${pkgver}") -conflicts=(webkitgtk3 libwebkit3) -replaces=(webkitgtk3 libwebkit3) +makedepends=(gtk3 gtk2 gperf gobject-introspection python mesa ruby gtk-doc) options=(!emptydirs) -source=(http://webkitgtk.org/releases/$pkgname-${pkgver}.tar.xz) +source=(http://webkitgtk.org/releases/$pkgbase-${pkgver}.tar.xz) sha256sums=('c710994a1ed0ec78f746a05ae7dc65369ed56d7475f0de576ca7a73ad9c6e670') -build() { - cd $pkgname-$pkgver - ./configure --prefix=/usr \ - --libexecdir=/usr/lib/$pkgname \ - --enable-introspection +prepare() { + mkdir build-gtk{,2} +} + +_build() ( + _ver="$1"; shift + 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() { - cd $pkgname-$pkgver - make -j1 DESTDIR="$pkgdir" install - install -Dm644 Source/WebKit/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +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" } |