1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
2 # Contributor: Eric Bélanger <eric@archlinux.org>
7 pkgdesc="Web content engine for GTK"
8 url="https://webkitgtk.org"
11 depends=(cairo fontconfig freetype2 libgcrypt glib2 gtk4 harfbuzz harfbuzz-icu
12 icu libjpeg libsoup3 libxml2 zlib libpng sqlite atk libwebp at-spi2-core
13 libegl libgl libgles libwpe wpebackend-fdo libxslt libsecret libtasn1
14 enchant libx11 libxext libice libxt wayland libnotify hyphen openjpeg2
15 woff2 libsystemd bubblewrap libseccomp xdg-dbus-proxy gstreamer
16 gst-plugins-base-libs libmanette libxcomposite)
17 makedepends=(cmake ninja python ruby gobject-introspection
18 wayland-protocols systemd gst-plugins-bad gperf)
19 optdepends=('geoclue: Geolocation support'
20 'gst-plugins-good: media decoding'
21 'gst-plugins-bad: media decoding'
22 'gst-libav: nonfree media decoding')
23 source=($url/releases/webkitgtk-$pkgver.tar.xz{,.asc})
24 sha256sums=('584677d6e7cae12e27cdcc8e05b4cf73b54849a24afc3d7a40cec91016deff00'
26 validpgpkeys=('D7FCF61CF9A2DEAB31D81BD3F3D322D0EC4582C3' # Carlos Garcia Campos <cgarcia@igalia.com>
27 '5AA3BC334FD7E3369E7C77B291C559DBE4C9123B') # Adrián Pérez de Castro <aperez@igalia.com>
34 cmake -S webkitgtk-$pkgver -B build -G Ninja \
36 -DCMAKE_BUILD_TYPE=Release \
37 -DCMAKE_INSTALL_PREFIX=/usr \
38 -DCMAKE_INSTALL_LIBDIR=lib \
39 -DCMAKE_INSTALL_LIBEXECDIR=lib \
40 -DCMAKE_SKIP_RPATH=ON \
43 -DENABLE_MINIBROWSER=ON
48 depends+=(libwpe-1.0.so libWPEBackend-fdo-1.0.so)
49 provides+=(libjavascriptcoregtk-5.0.so libwebkit2gtk-5.0.so)
51 DESTDIR="$pkgdir" cmake --install build
54 find Source -name 'COPYING*' -or -name 'LICENSE*' -print0 | sort -z |
55 while IFS= read -d $'\0' -r _f; do
60 install -Dm644 /dev/stdin "$pkgdir/usr/share/licenses/$pkgname/LICENSE"