# Template file for 'miniupnpc'
pkgname=miniupnpc
version=2.1
revision=1
build_style=gnu-makefile
short_desc="A small UPnP client library/tool to access Internet Gateway Devices"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="BSD-3-Clause"
#changelog="http://miniupnp.free.fr/files/changelog.php?file=miniupnpc-${version}.tar.gz"
homepage="http://miniupnp.free.fr"
distfiles="http://miniupnp.free.fr/files/${pkgname}-${version}.tar.gz"
checksum=e19fb5e01ea5a707e2a8cb96f537fbd9f3a913d53d804a3265e3aeab3d2064c6

CFLAGS="-fPIC"

post_install() {
	vlicense LICENSE
}

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