makedepends=(python-setuptools)

description="A small UPnP client library/tool to access Internet Gateway Devices"
url="http://miniupnp.free.fr"

packager="Great-OS Team"
maintainer="rems"

name=miniupnpc
version=2.3.3
release=1

source=(https://miniupnp.tuxfamily.org/files/$name-$version.tar.gz)

build() {
  cd $name-$version

  make
  python3 setup.py build
  
  make DESTDIR=$PKG install
  python3 setup.py install --optimize=1 --skip-build --root="$PKG"

  install -Dm644 man3/miniupnpc.3 $PKG/usr/share/man/man3/miniupnpc.3
  install -Dm644 LICENSE $PKG/usr/share/licenses/${name}/LICENSE
}
