blob: 8a2d586a66e628a2d3ee978abcbb173d692b9751 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# $Id: PKGBUILD 175876 2013-01-23 00:13:13Z eric $
# Maintainer: Andreas Radke <andyrtr@archlinux.org>
pkgbase=webkitgtk
pkgname=('webkitgtk2' 'webkitgtk3')
pkgver=1.10.2
pkgrel=2
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')
options=('!libtool' '!emptydirs')
source=(http://webkitgtk.org/releases/webkitgtk-$pkgver.tar.xz)
sha256sums=('19234f8e4edfaefe91ed06471a2aa8c71d26dd55d33787eede1dcfc9a3a96d9c')
build() {
cd "$srcdir/webkitgtk-$pkgver"
mkdir build-gtk2 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
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')
conflicts=('libwebkit3')
provides=("libwebkit3=${pkgver}")
replaces=('libwebkit3')
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"
make -j1 DESTDIR="$pkgdir" install
install -Dm644 ../Source/WebKit/LICENSE "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
}
|