blob: c55ee9b1cbd987881db87d15a8873047d94f303e (
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=webkit
pkgver=1.8.2
pkgrel=0
pkgdesc="portable web rendering engine WebKit for GTK+"
url="http://webkitgtk.org/"
arch="all"
license="LGPL BSD"
depends=
depends_dev="gtk+3.0-dev libsoup-dev gstreamer-dev"
makedepends="$depends_dev
autoconf automake libtool
bison
enchant-dev
expat-dev
flex
gnutls-dev
gobject-introspection-dev
gperf
gst-plugins-base-dev
gstreamer-dev
gtk-doc
icu-dev
jpeg-dev
libgcrypt-dev
libgpg-error-dev
libpng-dev
libsoup-dev
libxcomposite-dev
libxcursor-dev
libxdamage-dev
libxi-dev
libxml2-dev
libxrandr-dev
libxslt-dev
libxt-dev
mesa-dev
pango-dev
perl-switch
sqlite-dev
zlib-dev
"
install=
subpackages="$pkgname-dev gtklauncher $pkgname-lang"
source="http://webkitgtk.org/releases/webkit-$pkgver.tar.xz
webkit-gtk-1.7.90-parallel-make-hack.patch
webkit-1.8-textrels.patch
"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
cd "$_builddir"
for i in $source; do
case "$i" in
*.patch)
msg "Applying $i"
patch -p1 -i "$srcdir"/$i || return 1
;;
esac
done
libtoolize --force && aclocal -I Source/autotools && autoconf && automake || return 1
}
build() {
cd "$_builddir"
./configure --prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--disable-geolocation \
--with-gtk=3.0 \
|| return 1
# hack to work around parallel make problems,
# see https://bugs.webkit.org/show_bug.cgi?id=79498
make -j1 all-built-sources-local \
&& make all-ltlibraries-local \
&& make all-programs-local \
&& make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
rm -f "$pkgdir"/usr/lib/*.la
# verify so we don't have textrels
if scanelf -qRt "$pkgdir" | grep TEXTREL; then
error "found textrels"
return 1
fi
}
gtklauncher() {
pkgdesc="Application to test WebKit"
depends=""
install=
install -Dm755 "$srcdir"/$pkgname-$pkgver/Programs/GtkLauncher \
"$subpkgdir"/usr/bin/GtkLauncher
}
md5sums="f7bd0bd4f323039f15e19c82a9a8313c webkit-1.8.2.tar.xz
de77a3e7e61753e7f1cce3f4bd00a3f6 webkit-gtk-1.7.90-parallel-make-hack.patch
8de7b9f904387a798e10ac4add61640c webkit-1.8-textrels.patch"
|