# Template file for 'minissdpd'
pkgname=minissdpd
version=1.5
revision=2
build_style=gnu-makefile
makedepends="libnfnetlink-devel"
short_desc="MiniSSDP Daemon to speed up UPnP device discovery"
maintainer="Duncaen <duncaen@voidlinux.org>"
license="BSD-3-Clause"
homepage="http://miniupnp.free.fr/minissdpd.html"
distfiles="http://miniupnp.free.fr/files/minissdpd-${version}.tar.gz"
checksum=dfd637b185731e1acb412a86faa9718eb93c04ca08280541a6d22d14d1fb890f

CFLAGS="-D_GNU_SOURCE"

if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
	makedepends+=" musl-legacy-compat"
fi

do_install() {
	vbin minissdpd
	vman minissdpd.1
	vlicense LICENSE
	vsv minissdpd
}
