PKGBUILDs/extra/webkitgtk/PKGBUILD

76 lines
2.1 KiB
Bash
Raw Normal View History

2013-06-07 18:32:13 +00:00
# $Id$
2013-04-24 19:11:36 +00:00
# Maintainer: Andreas Radke <andyrtr@archlinux.org>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - use --disable-jit to solve segfaults
2013-04-24 19:11:36 +00:00
2014-04-14 21:07:45 +00:00
kgbase=webkitgtk
2014-03-03 23:32:37 +00:00
pkgname=(webkitgtk webkitgtk2)
2014-04-14 21:07:45 +00:00
pkgver=2.4.0
pkgrel=1
2013-06-07 18:32:13 +00:00
pkgdesc="GTK+ Web content engine library"
arch=(i686 x86_64)
2013-04-24 19:11:36 +00:00
url="http://webkitgtk.org/"
2013-06-07 18:32:13 +00:00
license=(custom)
2014-03-03 23:32:37 +00:00
depends=(libxt libxslt sqlite libsoup enchant libgl geoclue gst-plugins-base-libs
2013-06-12 20:57:10 +00:00
libsecret libwebp harfbuzz-icu)
2014-03-03 23:32:37 +00:00
makedepends=(gtk3 gtk2 gperf gobject-introspection python mesa ruby gtk-doc)
2014-04-14 21:07:45 +00:00
optdepends=('gst-plugins-base: free media decoding'
'gst-plugins-good: media decoding'
'gst-libav: nonfree media decoding')
2014-03-03 23:32:37 +00:00
options=(!emptydirs)
2014-04-14 21:07:45 +00:00
source=(http://webkitgtk.org/releases/$pkgbase-${pkgver}.tar.xz
fix-pretty-quotes.patch)
sha256sums=('dc5277cda89ee038408f78c94b1b07f101997f01ef877a142ffedac3b537dfbb'
'56316228bbbf0b7ebcbe210a35120f4e72cb9c1b680dd82cc2bde0f4549245e6')
2013-04-24 19:11:36 +00:00
2014-03-03 23:32:37 +00:00
prepare() {
mkdir build-gtk{,2}
2014-04-14 21:07:45 +00:00
cd $pkgbase-$pkgver
patch -Np0 -i ../fix-pretty-quotes.patch
2014-03-03 23:32:37 +00:00
}
_build() (
_ver="$1"; shift
cd build-${_ver}
2013-10-18 01:38:43 +00:00
2014-03-03 23:32:37 +00:00
../$pkgbase-$pkgver/configure --prefix=/usr \
--libexecdir=/usr/lib/webkit${_ver} \
--enable-introspection --disable-jit \
"$@"
2013-06-07 18:32:13 +00:00
# https://bugzilla.gnome.org/show_bug.cgi?id=655517
sed -i 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
2013-04-24 19:11:36 +00:00
make all stamp-po
2014-03-03 23:32:37 +00:00
)
build() {
_build gtk --enable-gtk-doc
_build gtk2 --disable-webkit2 --with-gtk=2.0
2013-04-24 19:11:36 +00:00
}
2014-03-03 23:32:37 +00:00
package_webkitgtk() {
depends+=(gtk3)
2014-04-14 21:07:45 +00:00
optdepends+=('gtk2: Netscape plugin support')
2014-03-03 23:32:37 +00:00
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"
2013-04-24 19:11:36 +00:00
}