# Template file for 'gupnp-igd'
pkgname=gupnp-igd
version=1.4.0
revision=1
_commit=a10bc3732e978f364319cbf7e67b71efa6b0b504
build_style=meson
build_helper="gir"
configure_args="$(vopt_bool gir introspection)"
hostmakedepends="pkg-config glib-devel"
makedepends="libglib-devel libxml2-devel libsoup-devel gssdp-devel gupnp-devel"
short_desc="Library to handle UPnP IGD port mapping"
maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="http://gupnp.org"
changelog="https://gitlab.gnome.org/GNOME/gupnp-igd/-/raw/master/NEWS"
#distfiles="${GNOME_SITE}/gupnp-igd/${version%.*}/gupnp-igd-${version}.tar.xz"
distfiles="https://gitlab.gnome.org/GNOME/gupnp-igd/-/archive/$_commit/gupnp-igd-$_commit.tar.gz"
checksum=6dcfef6298bd2fceed36393b43cb46254b22bded577bad244f8b043210e98b5f

# Package build options
build_options="gir"
build_options_default="gir"

gupnp-igd-devel_package() {
	depends="gupnp-devel ${sourcepkg}>=${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/share
		vmove usr/lib/pkgconfig
		vmove "usr/lib/*.so"
	}
}
