summaryrefslogtreecommitdiff
path: root/extra/webkitgtk/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/webkitgtk/PKGBUILD')
-rw-r--r--extra/webkitgtk/PKGBUILD60
1 files changed, 21 insertions, 39 deletions
diff --git a/extra/webkitgtk/PKGBUILD b/extra/webkitgtk/PKGBUILD
index 9065ed194..5aaac23d4 100644
--- a/extra/webkitgtk/PKGBUILD
+++ b/extra/webkitgtk/PKGBUILD
@@ -1,61 +1,43 @@
-# $Id: PKGBUILD 180811 2013-03-26 11:49:42Z foutrelis $
+# $Id: PKGBUILD 183326 2013-04-21 22:06:45Z heftig $
# Maintainer: Andreas Radke <andyrtr@archlinux.org>
pkgbase=webkitgtk
-pkgname=('webkitgtk2' 'webkitgtk3')
-pkgver=1.10.2
-pkgrel=3
+pkgname=('webkitgtk3')
+pkgver=2.0.1
+pkgrel=1
arch=('i686' 'x86_64')
url="http://webkitgtk.org/"
license=('custom')
-makedepends=('libxt' 'libxslt' 'sqlite' 'libsoup' 'enchant' 'libgl' 'geoclue' 'gtk2' 'gtk3' 'gst-plugins-base-libs' 'gstreamer0.10-base' 'gperf' 'gobject-introspection' 'python2' 'mesa' 'ruby' 'gtk-doc')
+makedepends=('libxt' 'libxslt' 'sqlite' 'libsoup' 'enchant' 'libgl' 'geoclue' 'gtk2' 'gtk3' 'gst-plugins-base-libs' 'gperf' 'gobject-introspection' 'python' 'mesa' 'ruby' 'gtk-doc' 'libsecret' 'libwebp')
options=('!libtool' '!emptydirs')
-source=(http://webkitgtk.org/releases/webkitgtk-$pkgver.tar.xz)
-sha256sums=('19234f8e4edfaefe91ed06471a2aa8c71d26dd55d33787eede1dcfc9a3a96d9c')
+source=(http://webkitgtk.org/releases/$pkgbase-$pkgver.tar.xz)
+sha256sums=('6303552a39d7912725d75bc55f530cdb99171fb873e299798d0bb932d6ea76cb')
+
+prepare() {
+ cd $pkgbase-$pkgver
+ mkdir build-gtk3
+}
build() {
- cd "$srcdir/webkitgtk-$pkgver"
- mkdir build-gtk2 build-gtk3
+ cd $pkgbase-$pkgver/build-gtk3
- cd build-gtk2
- PYTHON=/usr/bin/python2 ../configure --prefix=/usr \
- --enable-introspection \
- --disable-silent-rules \
- --libexecdir=/usr/lib/webkitgtk2 \
- --with-gstreamer=0.10 \
- --with-gtk=2.0 \
- --disable-webkit2
- make all stamp-po
-
- cd ../build-gtk3
- PYTHON=/usr/bin/python2 ../configure --prefix=/usr \
- --enable-introspection \
- --disable-silent-rules \
- --libexecdir=/usr/lib/webkitgtk3 \
- --with-gstreamer=1.0
+ # Suppress a *lot* of gcc 4.8 warnings
+ export CPPFLAGS="$CPPFLAGS -Wno-unused-local-typedefs"
+
+ ../configure --prefix=/usr --libexecdir=/usr/lib/webkitgtk3 \
+ --enable-introspection
make all stamp-po
}
package_webkitgtk3() {
pkgdesc="GTK+ Web content engine library for GTK+ 3.0"
- depends=('libxt' 'libxslt' 'sqlite' 'libsoup' 'enchant' 'libgl' 'geoclue' 'gtk2' 'gtk3' 'gst-plugins-base-libs')
+ depends=('libxt' 'libxslt' 'sqlite' 'libsoup' 'enchant' 'libgl' 'geoclue' 'gtk3' 'gst-plugins-base-libs' 'libsecret' 'libwebp')
conflicts=('libwebkit3')
provides=("libwebkit3=${pkgver}")
replaces=('libwebkit3')
+ optdepends=('gtk2: Webkit2 plugin support')
- cd "$srcdir/webkitgtk-$pkgver/build-gtk3"
- make -j1 DESTDIR="$pkgdir" install
- install -Dm644 ../Source/WebKit/LICENSE "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
-}
-
-package_webkitgtk2() {
- pkgdesc="GTK+ Web content engine library for GTK+ 2.0"
- depends=('libxt' 'libxslt' 'sqlite' 'libsoup' 'enchant' 'libgl' 'geoclue' 'gtk2' 'gstreamer0.10-base')
- conflicts=('libwebkit')
- provides=("libwebkit=${pkgver}")
- replaces=('libwebkit')
-
- cd "$srcdir/webkitgtk-$pkgver/build-gtk2"
+ cd $pkgbase-$pkgver/build-gtk3
make -j1 DESTDIR="$pkgdir" install
install -Dm644 ../Source/WebKit/LICENSE "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
}