void-packages/srcpkgs/gssdp/template

45 lines
1.3 KiB
Bash

# Template file for 'gssdp'
pkgname=gssdp
version=1.6.3
revision=1
build_style=meson
build_helper="gir"
configure_args="$(vopt_bool gir vapi) $(vopt_bool gir introspection)
-Dexamples=false -Dgtk_doc=false"
hostmakedepends="pkg-config glib-devel $(vopt_if gir vala)"
makedepends="gtk4-devel libsoup3-devel libglib-devel"
short_desc="GObject-based library for SSDP"
maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="https://wiki.gnome.org/action/show/Projects/GUPnP"
distfiles="${GNOME_SITE}/gssdp/${version%.*}/gssdp-${version}.tar.xz"
checksum=2fedb5afdb22cf14d5498a39a773ca89788a250fcf70118783df821e1f3f3446
# test_client_creation: assertion failed (error == NULL): No default route? (gssdp-error, 1)
make_check=ci-skip
build_options="gir man"
build_options_default="gir"
case "$XBPS_MACHINE" in
x86_64*|i686|ppc64le*|ppc64) build_options_default+=" man" ;;
esac
if [ $build_option_man ]; then
configure_args=" -Dmanpages=true"
hostmakedepends+=" pandoc"
fi
gssdp-devel_package() {
depends="libsoup3-devel gssdp>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
vmove usr/share/vala
fi
}
}