1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
6 pkgdesc="Web content engine for embedded devices"
7 url="https://wpewebkit.org"
10 depends=(cairo fontconfig freetype2 glib2 harfbuzz harfbuzz-icu icu libjpeg
11 libepoxy libgcrypt libsoup3 libxml2 zlib libpng sqlite libwebp libwpe
12 atk at-spi2-atk openjpeg2 woff2 libtasn1 libxslt libsystemd bubblewrap
13 libseccomp xdg-dbus-proxy gstreamer gst-plugins-base-libs libxkbcommon
14 wayland wpebackend-fdo)
15 makedepends=(cmake ninja gtk-doc python ruby systemd gst-plugins-bad gperf
17 optdepends=('geoclue: Geolocation support'
18 'gst-plugins-good: media decoding'
19 'gst-plugins-bad: media decoding'
20 'gst-libav: nonfree media decoding')
21 source=($url/releases/$pkgname-$pkgver.tar.xz{,.asc} fix-doc.diff)
22 sha256sums=('b1a3733c2d486c4da27f9636ccc39947da7d84258cd7a24a6fb0b842c9595c0b'
24 'd8406f972334b22c7bcad4b105f4fe3e1c9f3dda5b396dbf912afa01fc121d8f')
25 validpgpkeys=('D7FCF61CF9A2DEAB31D81BD3F3D322D0EC4582C3' # Carlos Garcia Campos <cgarcia@igalia.com>
26 '5AA3BC334FD7E3369E7C77B291C559DBE4C9123B') # Adrián Pérez de Castro <aperez@igalia.com>
30 patch -Np1 -i ../fix-doc.diff
34 cmake -S $pkgname-$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 \
42 -DENABLE_MINIBROWSER=ON
47 depends+=(libwpe-1.0.so libWPEBackend-fdo-1.0.so)
48 provides+=(libWPEWebKit-1.1.so)
50 DESTDIR="$pkgdir" cmake --install build
53 find Source -name 'COPYING*' -or -name 'LICENSE*' -print0 | sort -z |
54 while IFS= read -d $'\0' -r _f; do
59 install -Dm644 /dev/stdin "$pkgdir/usr/share/licenses/$pkgname/LICENSE"