# Compiling Time: 0.02 SBU
# Maintainer: Marius Cirsta <mcirsta@frugalware.org>

options+=('asneeded')

pkgname=miniupnpc
pkgver=1.9
pkgrel=1
pkgdesc="A small UPnP client library/tool to access Internet Gateway Devices"
url="http://miniupnp.free.fr"
depends=('glibc')
groups=('network-extra')
archs=('i686' 'x86_64')
up2date="lynx -dump http://miniupnp.free.fr/files/ | grep -B 1 'client release source code' | head -n1 | sed 's/.*-\([0-9\.]*\)\.tar.gz.*/\1/'"
source=($url/files/$pkgname-$pkgver.tar.gz)
sha1sums=('643001d52e322c52a7c9fdc8f31a7920f4619fc0')

build() {
  Fcd
  make PREFIX="$Fdestdir/" install || Fdie
  Fmanrel man3/miniupnpc.3
}


# optimization OK
