APKBUILD 1.21 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.2.3
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 19 20
	"
install=
subpackages="$pkgname-dev gtklauncher"
source="http://webkitgtk.org/$pkgname-$pkgver.tar.gz"

Natanael Copa's avatar
Natanael Copa committed
21
depends_dev="gtk+-dev libsoup-dev gstreamer-dev"
Natanael Copa's avatar
Natanael Copa committed
22 23 24 25 26 27

build() {
	cd "$srcdir"/$pkgname-$pkgver
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
Natanael Copa's avatar
Natanael Copa committed
28
		--infodir=/usr/share/info
Natanael Copa's avatar
Natanael Copa committed
29
	make || return 1
30 31 32 33
}

package() {
	cd "$srcdir"/$pkgname-$pkgver
Natanael Copa's avatar
Natanael Copa committed
34 35 36 37 38
	make DESTDIR="$pkgdir" install
}

gtklauncher() {
	pkgdesc="Application to test WebKit"
Natanael Copa's avatar
Natanael Copa committed
39
	depends=""
Natanael Copa's avatar
Natanael Copa committed
40 41 42 43 44
	install=
	install -Dm755 "$srcdir"/$pkgname-$pkgver/Programs/GtkLauncher \
		"$subpkgdir"/usr/bin/GtkLauncher
}

Natanael Copa's avatar
Natanael Copa committed
45
md5sums="0ab5c478a6f5b74a1ae96bf13a456662  webkit-1.2.3.tar.gz"