# Maintainer: Jan Alexander Steffens (heftig) # Contributor: Jan de Groot pkgbase=libsoup3 pkgname=(libsoup3 libsoup3-docs) pkgver=3.6.4+r64+g44c21bf9 pkgrel=1 pkgdesc="HTTP client/server library for GNOME" url="https://wiki.gnome.org/Projects/libsoup" arch=(x86_64) license=(LGPL) depends=( brotli glib-networking glib2 krb5 libnghttp2 libpsl libsysprof-capture sqlite ) makedepends=( gi-docgen git gobject-introspection meson python-quart samba vala ) checkdepends=( apache php-apache ) _commit=44c21bf9677797f35f510c62af3279d873fa0fd3 # test/comment-libsoup2-check-in-init source=("git+https://git.platypush.tech/blacklight/libsoup.git#commit=$_commit") # source=("git+https://gitlab.gnome.org/GNOME/libsoup.git#commit=$_commit") b2sums=('SKIP') pkgver() { cd libsoup git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g' } prepare() { cd libsoup } build() { local meson_options=( -D autobahn=disabled ) arch-meson libsoup build "${meson_options[@]}" meson compile -C build } check() { # Python's output buffering messes with the tests reading stdout lines from # http2-server.py through a pipe PYTHONUNBUFFERED=1 meson test -C build --print-errorlogs } package_libsoup3() { depends+=( libbrotlidec.so libgssapi_krb5.so libg{lib,object,io}-2.0.so libpsl.so ) optdepends=('samba: Windows Domain SSO') provides+=(libsoup-3.0.so) meson install -C build --destdir "$pkgdir" mkdir -p doc/usr/share mv {"$pkgdir",doc}/usr/share/doc } package_libsoup3-docs() { pkgdesc+=" (documentation)" depends=() mv doc/* "$pkgdir" } # vim:set sw=2 sts=-1 et: