# Contributor: Natanael Copa # Contributor: Rasmus Thomsen # Maintainer: Patrycja Rosa pkgname=libsoup3 pkgver=3.4.2 pkgrel=0 pkgdesc="Gnome HTTP client/server Library" url="https://wiki.gnome.org/Projects/libsoup" arch="all" license="LGPL-2.0-or-later" subpackages="$pkgname-dev $pkgname-lang $pkgname-dbg" depends="glib-networking gsettings-desktop-schemas" makedepends=" brotli-dev gobject-introspection-dev libgcrypt-dev libpsl-dev meson nghttp2-dev sqlite-dev vala zlib-dev " checkdepends="gnutls-dev" source="https://download.gnome.org/sources/libsoup/${pkgver%.*}/libsoup-$pkgver.tar.xz" builddir="$srcdir/libsoup-$pkgver" case "$CARCH" in x86*) ;; *) # arm*: sigill for some reason # rest: sigabrt, http1 != http2 on localhost req options="$options !check" ;; esac build() { abuild-meson \ -Db_lto=true \ -Dtls_check=false \ -Dintrospection=enabled \ -Dvapi=enabled \ -Dtests="$(want_check && echo true || echo false)" \ . output meson compile -C output } check() { meson test -t 10 --no-rebuild --print-errorlogs -C output } package() { DESTDIR="$pkgdir" meson install --no-rebuild -C output } sha512sums=" 711007599f639625fe2efdb7adb81de2dea0035180737ce0ec8234afb034646a2b6bd9ae384a69d6591aa142e91d245d502d13e1d97cd7b51c8c87c2d925f6b3 libsoup-3.4.2.tar.xz "