# Maintainer: Natanael Copa pkgname=webkitgtk pkgver=1.10.2 pkgrel=0 pkgdesc="portable web rendering engine WebKit for GTK+" url="http://webkitgtk.org/" arch="all" license="LGPL BSD" depends= depends_dev="gtk+3.0-dev libsoup-dev gstreamer-dev gst-plugins-base-dev" makedepends="$depends_dev autoconf automake libtool bison enchant-dev expat-dev flex gnutls-dev gobject-introspection-dev gperf gtk-doc gtk+2.0-dev icu-dev jpeg-dev libgcrypt-dev libgpg-error-dev libpng-dev libsoup-dev libxcomposite-dev libxcursor-dev libxdamage-dev libxi-dev libxml2-dev libxrandr-dev libxslt-dev libxt-dev mesa-dev pango-dev perl-switch ruby-gems sqlite-dev zlib-dev " install= replaces="webkit" subpackages="$pkgname-dev $pkgname-lang" source="http://webkitgtk.org/releases/webkitgtk-$pkgver.tar.xz webkit-gtk-1.7.90-parallel-make-hack.patch webkitgtk-1.10-textrels.patch " _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 libtoolize --force && aclocal -I Source/autotools && autoconf && automake || return 1 } build() { cd "$_builddir" ./configure --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --disable-geolocation \ --disable-webkit2 \ --with-gtk=3.0 \ || return 1 # hack to work around parallel make problems, # see https://bugs.webkit.org/show_bug.cgi?id=79498 make -j1 all-built-sources-local \ && make all-ltlibraries-local \ && make all-programs-local \ && make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 rm -f "$pkgdir"/usr/lib/*.la # verify so we don't have textrels if scanelf -qRt "$pkgdir" | grep TEXTREL; then error "found textrels" return 1 fi } md5sums="7b1a652af1eb11bee5bf7209e9ff67e6 webkitgtk-1.10.2.tar.xz de77a3e7e61753e7f1cce3f4bd00a3f6 webkit-gtk-1.7.90-parallel-make-hack.patch 9ace721086b25f0f32d7f76b29789f67 webkitgtk-1.10-textrels.patch"