summaryrefslogtreecommitdiff
path: root/nonprism
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-04-25 02:01:58 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-04-25 02:01:58 -0300
commit7a558c8a898319b6388758b733e802ea2147d4e6 (patch)
tree637363eff5e156d0506a4ee0cb31a7dffcd7bd1f /nonprism
parent8edd865c850eaf8e902b9f441a4d5a1680843b9e (diff)
downloadabslibre-7a558c8a898319b6388758b733e802ea2147d4e6.tar.gz
abslibre-7a558c8a898319b6388758b733e802ea2147d4e6.tar.bz2
abslibre-7a558c8a898319b6388758b733e802ea2147d4e6.zip
webkitgtk: add new package to [nonprism]
Diffstat (limited to 'nonprism')
-rw-r--r--nonprism/webkitgtk/PKGBUILD76
1 files changed, 76 insertions, 0 deletions
diff --git a/nonprism/webkitgtk/PKGBUILD b/nonprism/webkitgtk/PKGBUILD
new file mode 100644
index 000000000..903869e47
--- /dev/null
+++ b/nonprism/webkitgtk/PKGBUILD
@@ -0,0 +1,76 @@
+# $Id: PKGBUILD 264990 2016-04-15 07:33:52Z heftig $
+# Maintainer (Arch): Andreas Radke <andyrtr@archlinux.org>
+# Maintainer: André Silva <emulatorman@parabola.nu>
+
+pkgbase=webkitgtk
+pkgname=(webkitgtk webkitgtk2)
+pkgver=2.4.11
+pkgrel=1.nonprism1
+pkgdesc="GTK+ Web content engine library"
+arch=(i686 x86_64)
+url="http://webkitgtk.org/"
+license=(custom)
+depends=(libxt libxslt sqlite libsoup enchant libgl gst-plugins-base-libs
+ libsecret libwebp harfbuzz-icu)
+makedepends=(gtk3 gtk2 gperf gobject-introspection python2 mesa ruby)
+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)
+sha256sums=('588aea051bfbacced27fdfe0335a957dca839ebe36aa548df39c7bbafdb65bf7')
+
+prepare() {
+ mkdir build-gtk{,2} path
+ ln -s /usr/bin/python2 path/python
+}
+
+_build() (
+ _ver="$1"; shift
+ cd build-${_ver}
+
+ PATH="$srcdir/path:$PATH"
+
+ ../$pkgbase-$pkgver/configure --prefix=/usr \
+ --libexecdir=/usr/lib/webkit${_ver} \
+ --enable-introspection \
+ --disable-webkit2 \
+ --disable-gtk-doc \
+ --disable-geolocation \
+ "$@"
+
+ # 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
+ _build gtk2 --with-gtk=2.0
+}
+
+package_webkitgtk() {
+ pkgdesc+=", without geoclue2 support"
+ 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, without geoclue2 support"
+ 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"
+}