blob: ed248a9b1ecf95f7af24d9942f93edd7245ac1e3 (
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
# $Id: PKGBUILD 286949 2017-01-18 21:06:40Z heftig $
# Maintainer (Arch): Andreas Radke <andyrtr@archlinux.org>
# Maintainer: André Silva <emulatorman@parabola.nu>
pkgbase=webkitgtk
pkgname=(webkitgtk webkitgtk2)
pkgver=2.4.11
pkgrel=4.nonprism1
pkgdesc="Legacy Web content engine"
arch=(i686 x86_64)
url="https://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)
install=webkitgtk.install
source=(http://webkitgtk.org/releases/$pkgbase-${pkgver}.tar.xz
webkitgtk-2.4.9-abs.patch)
sha256sums=('588aea051bfbacced27fdfe0335a957dca839ebe36aa548df39c7bbafdb65bf7'
'ec294bbb5588a1802a68e3615c6718486b22f922645c5fef686d3d103014bf70')
prepare() {
mkdir build-gtk{,2} path
ln -s /usr/bin/python2 path/python
cd $pkgbase-$pkgver
patch -Np1 -i ../webkitgtk-2.4.9-abs.patch
}
_build() (
_ver="$1"; shift
cd build-${_ver}
PATH="$srcdir/path:$PATH"
CXXFLAGS+=" -fno-delete-null-pointer-checks"
CFLAGS+=" -fno-delete-null-pointer-checks"
../$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+=" for GTK+ 3, 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 GTK+ 2, 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"
}
|