88 lines
1.7 KiB
Bash
88 lines
1.7 KiB
Bash
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
|
|
# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
|
|
# Contributor: Jan de Groot <jgc@archlinux.org>
|
|
|
|
pkgbase=libsoup3
|
|
pkgname=(
|
|
libsoup3
|
|
libsoup3-docs
|
|
)
|
|
pkgver=3.6.4
|
|
pkgrel=1
|
|
pkgdesc="HTTP client/server library for GNOME"
|
|
url="https://wiki.gnome.org/Projects/libsoup"
|
|
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
|
|
license=(LGPL-2.0-or-later)
|
|
depends=(
|
|
brotli
|
|
glib-networking
|
|
glib2
|
|
glibc
|
|
krb5
|
|
libnghttp2
|
|
libpsl
|
|
libsysprof-capture
|
|
sqlite
|
|
zlib
|
|
)
|
|
makedepends=(
|
|
gi-docgen
|
|
git
|
|
glib2-devel
|
|
gobject-introspection
|
|
meson
|
|
python-quart
|
|
samba
|
|
vala
|
|
)
|
|
checkdepends=(
|
|
apache
|
|
php-apache
|
|
)
|
|
source=("git+https://gitlab.gnome.org/GNOME/libsoup.git#tag=$pkgver")
|
|
b2sums=('6ade187a1ad53c36fc2824d1775242c21b85a751c6bbdd19877db722d3a317e99f30f5498c53e476536f6a0945b531a34de7c87ffae12740d38d9935adf63cac')
|
|
|
|
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:
|