APKBUILD 1.38 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 4
pkgver=1.3.5
pkgrel=0
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
source="http://webkitgtk.org/$pkgname-$pkgver.tar.gz
	"
Natanael Copa's avatar
Natanael Copa committed
21

Natanael Copa's avatar
Natanael Copa committed
22
depends_dev="gtk+-dev libsoup-dev gstreamer-dev"
23 24 25 26 27 28 29 30 31 32 33 34 35
_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
36 37

build() {
38
	cd "$_builddir"
Natanael Copa's avatar
Natanael Copa committed
39 40 41
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
Natanael Copa's avatar
Natanael Copa committed
42
		--infodir=/usr/share/info
Natanael Copa's avatar
Natanael Copa committed
43
	make || return 1
44 45 46
}

package() {
47
	cd "$_builddir"
Natanael Copa's avatar
Natanael Copa committed
48 49 50 51 52
	make DESTDIR="$pkgdir" install
}

gtklauncher() {
	pkgdesc="Application to test WebKit"
Natanael Copa's avatar
Natanael Copa committed
53
	depends=""
Natanael Copa's avatar
Natanael Copa committed
54 55 56 57 58
	install=
	install -Dm755 "$srcdir"/$pkgname-$pkgver/Programs/GtkLauncher \
		"$subpkgdir"/usr/bin/GtkLauncher
}

Natanael Copa's avatar
Natanael Copa committed
59
md5sums="421104ef53ed865e0bb7b7f4e465de31  webkit-1.3.5.tar.gz"