APKBUILD 1.89 KB
Newer Older
Natanael Copa's avatar
Natanael Copa committed
1 2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=webkit
Natanael Copa's avatar
Natanael Copa committed
3
pkgver=1.2.4
4
pkgrel=1
Natanael Copa's avatar
Natanael Copa committed
5 6
pkgdesc="portable web rendering engine WebKit for GTK+"
url="http://webkitgtk.org/"
Natanael Copa's avatar
Natanael Copa committed
7
license="LGPL BSD"
Natanael Copa's avatar
Natanael Copa committed
8
depends=
Natanael Copa's avatar
Natanael Copa committed
9
makedepends="
Natanael Copa's avatar
Natanael Copa committed
10
	libsoup-dev pango-dev gtk+-dev jpeg-dev libpng-dev libxml2-dev
11
	gperf pkgconfig bison flex icu-dev cairo-dev atk-dev
Natanael Copa's avatar
Natanael Copa committed
12 13
	gnutls-dev sqlite-dev libxslt-dev libxt-dev libiconv-dev gettext-dev
	zlib-dev libgcrypt-dev libgpg-error-dev expat-dev e2fsprogs-dev
Natanael Copa's avatar
Natanael Copa committed
14
	enchant-dev libxi-dev libxrandr-dev libxcursor-dev libxdamage-dev
Natanael Copa's avatar
Natanael Copa committed
15
	libxcomposite-dev gstreamer-dev gst-plugins-base-dev
Natanael Copa's avatar
Natanael Copa committed
16 17 18
	"
install=
subpackages="$pkgname-dev gtklauncher"
19 20 21 22 23 24 25 26 27
source="http://webkitgtk.org/$pkgname-$pkgver.tar.gz
	cve-2010-2646.patch
	cve-2010-2651.patch
	cve-2010-2900.patch
	cve-2010-2901.patch
	cve-2010-3115.patch
	cve-2010-3116.patch
	cve-2010-3120.patch
	"
Natanael Copa's avatar
Natanael Copa committed
28

Natanael Copa's avatar
Natanael Copa committed
29
depends_dev="gtk+-dev libsoup-dev gstreamer-dev"
30 31 32 33 34 35 36 37 38 39 40 41 42
_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
}
Natanael Copa's avatar
Natanael Copa committed
43 44

build() {
45
	cd "$_builddir"
Natanael Copa's avatar
Natanael Copa committed
46 47 48
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
Natanael Copa's avatar
Natanael Copa committed
49
		--infodir=/usr/share/info
Natanael Copa's avatar
Natanael Copa committed
50
	make || return 1
51 52 53
}

package() {
54
	cd "$_builddir"
Natanael Copa's avatar
Natanael Copa committed
55 56 57 58 59
	make DESTDIR="$pkgdir" install
}

gtklauncher() {
	pkgdesc="Application to test WebKit"
Natanael Copa's avatar
Natanael Copa committed
60
	depends=""
Natanael Copa's avatar
Natanael Copa committed
61 62 63 64 65
	install=
	install -Dm755 "$srcdir"/$pkgname-$pkgver/Programs/GtkLauncher \
		"$subpkgdir"/usr/bin/GtkLauncher
}

66 67 68 69 70 71 72 73
md5sums="dc3a92dd0e8c2e70263fbfdf809b51a5  webkit-1.2.4.tar.gz
3d2c4af2fa46388876de7a5747f50de0  cve-2010-2646.patch
4db553a178f951b857486bcc0955b663  cve-2010-2651.patch
abfec5aeaa5005279993d731dc919680  cve-2010-2900.patch
fa980cb721e6a2b43107633dc3782d62  cve-2010-2901.patch
fc5553d85c14f29128985bddc195782c  cve-2010-3115.patch
b4787ffaac3f102e7bb267839a261496  cve-2010-3116.patch
b3e21cb4755c6cbab31dbe5063883c04  cve-2010-3120.patch"