1 # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
2 # Contributor: Timothy Redaelli <timothy.redaelli@gmail.com>
3 # Contributor: Florian Loitsch <archlinux@florian.loitsch.com>
6 pkgname=(miniupnpc python-miniupnpc)
9 pkgdesc='Small UPnP client library/tool to access Internet Gateway Devices'
10 url='https://miniupnp.tuxfamily.org/'
13 makedepends=('sh' 'glibc' 'lsb-release' 'python' 'python-setuptools')
14 source=(https://miniupnp.tuxfamily.org/files/${pkgname}-${pkgver}.tar.gz{,.sig})
15 sha512sums=('f6515bda86405114016474fef6332c0c09a56b9293cf4391113f549444bab67e7d031af7b94dacff5e7c96d6508527204498c00fb67d6067685ef606b2152595'
17 b2sums=('ebfea3fe978280825b7beefb8fe799685a72b0a74c589f5f55c7fde3d8c0d4bbb3d50fa0ff3aed554fa1e24ada0a1ab578328373f0295020415998fe35cde0a0'
20 '751E9FF6944A3B36A5432216DB511043A31ACAAF' # miniupnp (miniupnp !) <miniupnp@free.fr>
24 cd ${pkgname}-${pkgver}
30 cd ${pkgname}-${pkgver}
36 provides=(libminiupnpc.so)
38 cd ${pkgname}-${pkgver}
39 make DESTDIR="${pkgdir}" install
40 install -Dm 644 man3/miniupnpc.3 -t "${pkgdir}/usr/share/man/man3"
41 install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
44 package_python-miniupnpc() {
45 pkgdesc='Python bindings for miniupnpc'
46 depends=(python glibc)
48 cd ${pkgbase}-${pkgver}
49 python setup.py install --optimize=1 --skip-build --root="$pkgdir"
50 install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"