void-packages/srcpkgs/libsoup3/template

47 lines
1.5 KiB
Bash

# Template file for 'libsoup3'
pkgname=libsoup3
version=3.4.2
revision=1
build_style=meson
build_helper="gir"
configure_args="-Dgssapi=disabled -Dntlm=disabled -Dsysprof=disabled
-Dtls_check=false $(vopt_feature gir introspection) $(vopt_feature gir vapi)"
hostmakedepends="gettext-devel glib-devel pkg-config gettext
$(vopt_if gir vala) python3-gobject"
makedepends="libglib-devel nghttp2-devel sqlite-devel libpsl-devel brotli-devel
$(vopt_if gir vala-devel)"
depends="glib-networking"
checkdepends="$depends gnutls-devel"
short_desc="HTTP library implementation in C"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="https://wiki.gnome.org/Projects/libsoup"
changelog="https://gitlab.gnome.org/GNOME/libsoup/-/raw/master/NEWS"
distfiles="${GNOME_SITE}/libsoup/${version%.*}/libsoup-${version}.tar.xz"
checksum=78c8fa37cb152d40ec8c4a148d6155e2f6947f3f1602a7cda3a31ad40f5ee2f3
make_check=ci-skip # can not bind ports in CI
# Package build options
build_options="gir"
build_options_default="gir"
if [ "$XBPS_CHECK_PKGS" ]; then
configure_args+=" -Dtests=true"
else
configure_args+=" -Dtests=false"
fi
libsoup3-devel_package() {
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/lib/pkgconfig/libsoup-3.0.pc
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0/Soup-3.0.gir
vmove usr/share/vala
fi
vmove usr/include/libsoup-3.0
vmove usr/lib/libsoup-3.0.so
}
}