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

md5sums="bb3bd727960630bb4cbaddf8b1632d18  webkitgtk-2.10.5.tar.xz
c114751c30cdcaede5a7ed5568b2b0d4  fix-execinfo.patch
375d22de42a0d1053985a6df942f1db3  disallow-ctype.patch
3fa45dbc0ea278e6426b6f86e0f8fc6d  fix-isnan.patch
b98f38a61f4155eb808101b99690bcb0  disallow-malloc_trim.patch"
sha256sums="785d5e98eaf07be15fb8891b7d5b13a2df7072c609b3ee631ca07d5dea1d79fa  webkitgtk-2.10.5.tar.xz
b2bc9e03fd5d968d6df4531a7d102496139120e666e6fed397a19ae4026751c6  fix-execinfo.patch
f4fd0f6d2c70c95169ab5c84d39607d1c4b2f674c36119f8fc1c60c751564e12  disallow-ctype.patch
08a688126e3e9a0640786b4b928740bceec0e7f94720d71ecbec971dd1dd77ce  fix-isnan.patch
3045c8022bee29cda9cb31e96e441473805701b672df8984a931082389f70259  disallow-malloc_trim.patch"
sha512sums="51a5c469b1251b643055a1fb9d7b7be6e5497ebaba93d08d03f4e34a8c708666c3f18c1ddc1faa51af8200bf823f075a0fd031bb390a3fd92e17b51b0f0ccdc4  webkitgtk-2.10.5.tar.xz
602630468ee80b9f9bb53ee7808f4b2f2c86d1d4db14ac9c244b3e2e79a245510a289eb321cb7dbefd3b7a2dde13cf444b8ecf7cd46f23eaa5c0f04670914e42  fix-execinfo.patch
59f4e977fae16145a5116c97e3700625f1ed27963ad65daa957f1355dc93269435c1225fc5302b45e5df731c14aa7e639db4e163003eb265b867a9df9f97ab6f  disallow-ctype.patch
cf48a1faf1e4daebf37c17e6b646d797b4179cee37b37369c34f879e4bafd190c974c18bad80beb7bc4560ce4d9a1f39aab8f5e5df3c130c2c8eaabb9fd124be  fix-isnan.patch
a42aafb24233451a6b01770641aaf8c2cd4ee26f9e4301c5723ad70b83f3615533595405a27a35ac26e844082021cc3d516a92c385d2e0cef32366fa64eef16b  disallow-malloc_trim.patch"