diff options
Diffstat (limited to 'main/webkit/APKBUILD')
-rw-r--r-- | main/webkit/APKBUILD | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/main/webkit/APKBUILD b/main/webkit/APKBUILD new file mode 100644 index 0000000000..5d8a4f7752 --- /dev/null +++ b/main/webkit/APKBUILD @@ -0,0 +1,64 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=webkit +pkgver=1.4.1 +pkgrel=2 +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" +source="http://webkitgtk.org/$pkgname-$pkgver.tar.gz + libpng-1.5.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 \ + || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + rm -f "$pkgdir"/usr/lib/*.la +} + +gtklauncher() { + pkgdesc="Application to test WebKit" + depends="" + install= + install -Dm755 "$srcdir"/$pkgname-$pkgver/Programs/GtkLauncher \ + "$subpkgdir"/usr/bin/GtkLauncher +} + +md5sums="c1a4f732a77d6f8197437b50678d3dbc webkit-1.4.1.tar.gz +e86d4770a37448eb508520b3ae766695 libpng-1.5.patch" |