void-packages/srcpkgs/libsoup3/template

42 lines
1.4 KiB
Bash
Raw Normal View History

2021-09-19 17:47:58 +02:00
# Template file for 'libsoup3'
pkgname=libsoup3
2022-01-22 09:25:30 +01:00
version=3.0.4
2021-09-19 17:47:58 +02:00
revision=1
wrksrc="libsoup-$version"
build_style=meson
build_helper="gir"
configure_args="-Dgssapi=disabled -Dntlm=disabled -Dsysprof=disabled
-Dtls_check=false -Dintrospection=$(vopt_if gir enabled disabled)
-Dvapi=$(vopt_if gir enabled disabled)"
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"
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"
2022-01-22 09:25:30 +01:00
checksum=5bd38b5e091f707fd7fa3ed7c37aacca3f8e16c65787f1cc17dc38d1dcde567b
2021-09-19 17:47:58 +02:00
make_check=no # gio tests can't run in chroot
# Package build options
build_options="gir"
build_options_default="gir"
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
}
}