aboutsummaryrefslogtreecommitdiffstats
path: root/community/webkit2gtk/APKBUILD
blob: 7a8e4da658e451e41065b2369429a5a193e04289 (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
# Contributor: Jiri Horner <laeqten@gmail.com>
# Maintainer: Jiri Horner <laeqten@gmail.com>
pkgname=webkit2gtk
pkgver=2.12.3
pkgrel=0
pkgdesc="portable web rendering engine WebKit for GTK+"
url="http://webkitgtk.org/"
arch="x86 x86_64"
license="LGPL2+ BSD"
depends=""
depends_dev=""
makedepends="$depends_dev
	bison
	cmake
	enchant-dev
	flex
	gnutls-dev
	gobject-introspection-dev
	gperf
	gst-plugins-base1-dev
	gstreamer1-dev
	gtk+3.0-dev
	gtk-doc
	hyphen-dev
	icu-dev
	libjpeg-turbo-dev
	libnotify-dev
	libpng-dev
	libsecret-dev
	libsoup-dev
	libwebp-dev
	libxml2-dev
	libxslt-dev
	libxt-dev
	mesa-dev
	pango-dev
	paxmark
	ruby
	sqlite-dev
	"
install=
replaces="webkit"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="http://webkitgtk.org/releases/webkitgtk-$pkgver.tar.xz
	musl-fixes.patch
	"

_srcdir="${srcdir}/webkitgtk-${pkgver}"
_builddir="${srcdir}/build"
prepare() {
	cd "$_srcdir"
	for i in $source; do
		case "$i" in
		*.patch)
			msg "Applying $i"
			patch -p1 -i "$srcdir"/$i || return 1
			;;
		esac
	done
	rm -r Source/ThirdParty/gtest/ || return 1
	rm -r Source/ThirdParty/qunit/ || return 1
}

build() {
	mkdir "$_builddir"
	cd "$_builddir"
	cmake -DPORT=GTK \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_SKIP_RPATH=ON \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DLIB_INSTALL_DIR=/usr/lib \
		-DLIBEXEC_INSTALL_DIR=/usr/lib/webkit2gtk-4.0 \
		-DENABLE_GTKDOC=ON \
		-DENABLE_GEOLOCATION=OFF \
		-DENABLE_PLUGIN_PROCESS_GTK2=OFF \
		"$_srcdir" || return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	# needed for JIT
	paxmark -m "$pkgdir"/usr/lib/webkit2gtk-4.0/WebKitWebProcess || return 1
}

md5sums="aebb4029c09dd81664aa830e4a584c85  webkitgtk-2.12.3.tar.xz
4e74c88f7e9522c6a573f9d588da9bc4  musl-fixes.patch"
sha256sums="173cbb9a2eca23eee52e99965483ab25aa9c0569ef5b57041fc0c129cc26c307  webkitgtk-2.12.3.tar.xz
5cc1b9790056b4430b8a7b357f376ddcae43e38ab228d6a259c0abdc7ab4b892  musl-fixes.patch"
sha512sums="d1a93c215cd5f2eb4d708b5a3898616d7851c57ccef473864eb5dd556909762a456e180ebe50c793959148490a80b3fe7f21fded7479b406922201ce44acf226  webkitgtk-2.12.3.tar.xz
95f88563cb83387e3f44781dd8b00c5adf53e352869ca1d217c6cfc0895e9b7680e24820b8df340316564dcbc4cb65eb502fb003089b4805b9ac9f583f454013  musl-fixes.patch"