extra/webkit2gtk-5.0 to 2.38.0-2

This commit is contained in:
Kevin Mihelich 2022-09-22 23:43:37 +00:00
parent a6388d17e8
commit 26f8281a25

View file

@ -6,28 +6,75 @@
highmem=1
pkgname=webkit2gtk-5.0
pkgver=2.36.7
pkgrel=1
pkgbase=webkit2gtk-5.0
pkgname=(webkit2gtk-5.0 webkit2gtk-5.0-docs)
pkgver=2.38.0
pkgrel=2
pkgdesc="Web content engine for GTK"
url="https://webkitgtk.org"
arch=(x86_64)
license=(custom)
depends=(cairo fontconfig freetype2 libgcrypt glib2 gtk4 harfbuzz harfbuzz-icu
icu libjpeg libsoup3 libxml2 zlib libpng sqlite atk libwebp at-spi2-core
libegl libgl libgles libwpe wpebackend-fdo libxslt libsecret libtasn1
enchant libx11 libxext libice libxt wayland libnotify hyphen openjpeg2
woff2 libsystemd bubblewrap libseccomp xdg-dbus-proxy gstreamer
gst-plugins-base-libs libmanette libxcomposite)
makedepends=(cmake ninja python ruby gobject-introspection
wayland-protocols systemd gst-plugins-bad gperf)
optdepends=('geoclue: Geolocation support'
'gst-plugins-good: media decoding'
'gst-plugins-bad: media decoding'
'gst-libav: nonfree media decoding')
depends=(
at-spi2-core
atk
bubblewrap
cairo
enchant
fontconfig
freetype2
glib2
gst-plugins-base-libs
gstreamer
gtk4
harfbuzz
harfbuzz-icu
hyphen
icu
libegl
libgcrypt
libgl
libgles
libice
libjpeg
libmanette
libnotify
libpng
libseccomp
libsecret
libsoup3
libsystemd
libtasn1
libwebp
libwpe
libx11
libxcomposite
libxext
libxml2
libxslt
libxt
openjpeg2
sqlite
wayland
woff2
wpebackend-fdo
xdg-dbus-proxy
zlib
)
makedepends=(
cmake
gi-docgen
gobject-introspection
gperf
gst-plugins-bad
ninja
python
ruby
systemd
wayland-protocols
)
options=(debug)
source=($url/releases/webkitgtk-$pkgver.tar.xz{,.asc})
sha256sums=('0c260cf2b32f0481d017670dfed1b61e554967cd067195606c9f9eb5fe731743'
sha256sums=('f9ce6375a3b6e1329b0b609f46921e2627dc7ad6224b37b967ab2ea643bc0fbd'
'SKIP')
validpgpkeys=('D7FCF61CF9A2DEAB31D81BD3F3D322D0EC4582C3' # Carlos Garcia Campos <cgarcia@igalia.com>
'5AA3BC334FD7E3369E7C77B291C559DBE4C9123B') # Adrián Pérez de Castro <aperez@igalia.com>
@ -52,17 +99,24 @@ build() {
-DCMAKE_INSTALL_LIBEXECDIR=lib \
-DCMAKE_SKIP_RPATH=ON \
-DUSE_GTK4=ON \
-DENABLE_GTKDOC=OFF \
-DENABLE_DOCUMENTATION=ON \
-DENABLE_MINIBROWSER=ON
cmake --build build
}
package() {
package_webkit2gtk-5.0() {
depends+=(libwpe-1.0.so libWPEBackend-fdo-1.0.so)
provides+=(libjavascriptcoregtk-5.0.so libwebkit2gtk-5.0.so)
optdepends=('geoclue: Geolocation support'
'gst-plugins-good: media decoding'
'gst-plugins-bad: media decoding'
'gst-libav: nonfree media decoding')
DESTDIR="$pkgdir" cmake --install build
mkdir -p doc/usr/share
mv {"$pkgdir",doc}/usr/share/gtk-doc
cd webkitgtk-$pkgver
find Source -name 'COPYING*' -or -name 'LICENSE*' -print0 | sort -z |
while IFS= read -d $'\0' -r _f; do
@ -73,4 +127,11 @@ package() {
install -Dm644 /dev/stdin "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
# vim:set sw=2 et:
package_webkit2gtk-5.0-docs() {
pkgdesc+=" (documentation)"
depends=()
mv doc/* "$pkgdir"
}
# vim:set sw=2 sts=-1 et: