Date: Thursday, July 16, 2020 @ 06:17:41 Author: arojas Revision: 664034
Add python package, needed for nicotine+ Modified: miniupnpc/trunk/PKGBUILD ----------+ PKGBUILD | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2020-07-16 05:54:33 UTC (rev 664033) +++ PKGBUILD 2020-07-16 06:17:41 UTC (rev 664034) @@ -2,7 +2,8 @@ # Contributor: Timothy Redaelli <[email protected]> # Contributor: Florian Loitsch <[email protected]> -pkgname=miniupnpc +pkgbase=miniupnpc +pkgname=(miniupnpc python-miniupnpc) pkgver=2.1.20190408 pkgrel=3 pkgdesc='Small UPnP client library/tool to access Internet Gateway Devices' @@ -10,7 +11,7 @@ arch=('x86_64') license=('BSD') depends=('sh') -makedepends=('lsb-release') +makedepends=('lsb-release' 'python-setuptools') provides=('libminiupnpc.so') source=(https://miniupnp.tuxfamily.org/files/${pkgname}-${pkgver}.tar.gz{,.sig}) sha256sums=('a0c46bcf6065d6351a8fa6a0a18dc57d10a16908dbb470908fd2e423511514ec' @@ -22,6 +23,7 @@ build() { cd ${pkgname}-${pkgver} make + python setup.py build } check() { @@ -29,7 +31,7 @@ make test } -package() { +package_miniupnpc() { cd ${pkgname}-${pkgver} make DESTDIR="${pkgdir}" install install -Dm 644 man3/miniupnpc.3 -t "${pkgdir}/usr/share/man/man3" @@ -36,4 +38,14 @@ install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" } +package_python-miniupnpc() { + pkgdesc='Python bindings for miniupnpc' + depends=(python) + provides=() + + cd ${pkgbase}-${pkgver} + python setup.py install --optimize=1 --skip-build --root="$pkgdir" + install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" +} + # vim: ts=2 sw=2 et:
