# Template file for 'minissdpd'
pkgname=minissdpd
version=1.6.0
revision=1
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=f4c2dea6a472e0a5cc9dca2dc4c1fc36ba5538eacf8d793825293251725546bd

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
}
