APP=miniupnpc
VERSION=2.1
BUILD=1sml
HOMEPAGE='http://miniupnp.free.fr/'
DOWNLOAD='http://miniupnp.free.fr/files/download.php?file=miniupnpc-2.1.tar.gz'
DESC="Client library to enable applications to access UPnP services on the network"
REQUIRES="python3"

build() {
  mkandenterbuilddir
  rm -rf $APP-$VERSION

  tar xf $SRCDIR/$APP-$VERSION.tar.?z*
  cd $APP-$VERSION
  fixbuilddirpermissions

  make
  make install DESTDIR=$PKG LIBDIR=lib

  python3 setup.py build 
  python3 setup.py install --root=$PKG

  cp LICENSE $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
839a341e9fe0b2128383c6de4887dc551974aabefc0646a3bef811c6bc19efd0be59bae0a92c8deaef46c3658dfa0cd8376ac243dfbc7d22f96dc8dfb02e2db0  miniupnpc-2.1.tar.lz
"
