# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
setvar pkgname = 'miniupnpc'
setvar pkgver = '2.0.20170509'
setvar pkgrel = '0'
setvar pkgdesc = ""Library and tool to control NAT in UPnP-enabled routers""
setvar url = ""http://miniupnp.free.fr/""
setvar arch = ""all""
setvar license = ""BSD""
setvar makedepends = ""bsd-compat-headers""
setvar subpackages = ""$pkgname-dev $pkgname-doc""
setvar source = ""http://miniupnp.free.fr/files/$pkgname-$pkgver.tar.gz""
setvar builddir = ""$srcdir"/$pkgname-$pkgver"

proc check {
	cd $builddir
	make check
}

proc build {
	cd $builddir
	make
}

proc package {
	cd $builddir
	make PREFIX="$pkgdir"/usr install
}

setvar sha512sums = ""71ec052ef6c8ad0d529e467ddae6eae19a93b9816174eeac753aa90e036cc2f00cf7e8d1cdb188ef8280849a988fe2995e37b63f8e2a361e021c1d1b306bff6f  miniupnpc-2.0.20170509.tar.gz""