APKBUILD 1.55 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.4.1
Natanael Copa's avatar
Natanael Copa committed
4
pkgrel=2
Natanael Copa's avatar
Natanael Copa committed
5 6
pkgdesc="portable web rendering engine WebKit for GTK+"
url="http://webkitgtk.org/"
7
arch="all"
Natanael Copa's avatar
Natanael Copa committed
8
license="LGPL BSD"
Natanael Copa's avatar
Natanael Copa committed
9
depends=
Natanael Copa's avatar
Natanael Copa committed
10
makedepends="
Natanael Copa's avatar
Natanael Copa committed
11
	libsoup-dev pango-dev gtk+-dev jpeg-dev libpng-dev libxml2-dev
12
	gperf pkgconfig bison flex icu-dev cairo-dev atk-dev
Natanael Copa's avatar
Natanael Copa committed
13 14
	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
15
	enchant-dev libxi-dev libxrandr-dev libxcursor-dev libxdamage-dev
16
	libxcomposite-dev gstreamer-dev gst-plugins-base-dev
17
	gobject-introspection-dev perl-switch
Natanael Copa's avatar
Natanael Copa committed
18 19 20
	"
install=
subpackages="$pkgname-dev gtklauncher"
21
source="http://webkitgtk.org/$pkgname-$pkgver.tar.gz
22
	libpng-1.5.patch"
Natanael Copa's avatar
Natanael Copa committed
23

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

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

package() {
50
	cd "$_builddir"
Natanael Copa's avatar
Natanael Copa committed
51 52
	make DESTDIR="$pkgdir" install || return 1
	rm -f "$pkgdir"/usr/lib/*.la
Natanael Copa's avatar
Natanael Copa committed
53 54 55 56
}

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

Natanael Copa's avatar
Natanael Copa committed
63
md5sums="c1a4f732a77d6f8197437b50678d3dbc  webkit-1.4.1.tar.gz
Ariadne Conill's avatar
Ariadne Conill committed
64
e86d4770a37448eb508520b3ae766695  libpng-1.5.patch"