# Contributor: Sergei Lukin # Contributor: Jiri Horner # Maintainer: Jiri Horner pkgname=webkit2gtk pkgver=2.14.5 pkgrel=0 pkgdesc="portable web rendering engine WebKit for GTK+" url="http://webkitgtk.org/" arch="x86 x86_64" license="LGPL2+ BSD" makedepends="$depends_dev bison cmake enchant-dev flex gnutls-dev gobject-introspection-dev gperf gst-plugins-base1-dev gstreamer1-dev gtk+3.0-dev gtk-doc hyphen-dev icu-dev libjpeg-turbo-dev libnotify-dev libpng-dev libsecret-dev libsoup-dev libwebp-dev libxml2-dev libxslt-dev libxt-dev mesa-dev pango-dev paxmark ruby sqlite-dev " replaces="webkit" subpackages="$pkgname-dev $pkgname-doc $pkgname-lang" source="http://webkitgtk.org/releases/webkitgtk-$pkgver.tar.xz musl-fixes.patch " # secfixes: # 2.14.5-r0: # - CVE-2017-2350 # - CVE-2017-2354 # - CVE-2017-2355 # - CVE-2017-2356 # - CVE-2017-2362 # - CVE-2017-2363 # - CVE-2017-2364 # - CVE-2017-2365 # - CVE-2017-2366 # - CVE-2017-2369 # - CVE-2017-2371 # - CVE-2017-2373 builddir="${srcdir}/webkitgtk-${pkgver}" prepare() { default_prepare || return 1 rm -r Source/ThirdParty/gtest/ || return 1 rm -r Source/ThirdParty/qunit/ || return 1 } build() { cd "$builddir" mkdir build && cd build cmake -DPORT=GTK \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_SKIP_RPATH=ON \ -DCMAKE_INSTALL_PREFIX=/usr \ -DLIB_INSTALL_DIR=/usr/lib \ -DLIBEXEC_INSTALL_DIR=/usr/lib/webkit2gtk-4.0 \ -DENABLE_GTKDOC=ON \ -DENABLE_GEOLOCATION=OFF \ -DENABLE_PLUGIN_PROCESS_GTK2=OFF \ .. || return 1 make || return 1 } package() { cd "$builddir"/build make DESTDIR="$pkgdir" install || return 1 # needed for JIT paxmark -m "$pkgdir"/usr/lib/webkit2gtk-4.0/WebKitWebProcess || return 1 } sha512sums="3351d9b05458434835fa2db050c34906649c3b1222d7936d123306634a46e35e8cc3aa1bb7512b103af1996fce722254692826b6f695e32ae176032dc8c94e1c webkitgtk-2.14.5.tar.xz 95f88563cb83387e3f44781dd8b00c5adf53e352869ca1d217c6cfc0895e9b7680e24820b8df340316564dcbc4cb65eb502fb003089b4805b9ac9f583f454013 musl-fixes.patch"