aboutsummaryrefslogtreecommitdiffstats
path: root/main/webkit/APKBUILD
blob: e5c12581ae8c9091f26fa926da2d18ee497799f4 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=webkit
pkgver=1.6.3
pkgrel=1
pkgdesc="portable web rendering engine WebKit for GTK+"
url="http://webkitgtk.org/"
arch="all"
license="LGPL BSD"
depends=
makedepends="
	libsoup-dev pango-dev gtk+-dev jpeg-dev libpng-dev libxml2-dev
	gperf pkgconfig bison flex icu-dev cairo-dev atk-dev
	gnutls-dev sqlite-dev libxslt-dev libxt-dev libiconv-dev gettext-dev
	zlib-dev libgcrypt-dev libgpg-error-dev expat-dev e2fsprogs-dev
	enchant-dev libxi-dev libxrandr-dev libxcursor-dev libxdamage-dev
	libxcomposite-dev gstreamer-dev gst-plugins-base-dev
	gobject-introspection-dev perl-switch
	"
install=
subpackages="$pkgname-dev gtklauncher $pkgname-lang"
source="http://webkitgtk.org/$pkgname-$pkgver.tar.xz
	webkit-1.6.1-alt-fix-TEXTREL.patch
	"

depends_dev="gtk+-dev libsoup-dev gstreamer-dev"
_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
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--with-gtk=2.0 \
		|| return 1
	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="c476d9335419df061510d31e21175df1  webkit-1.6.3.tar.xz
4e47996e3bb87ca27c0e49ce6a2abbc7  webkit-1.6.1-alt-fix-TEXTREL.patch"