Date: Sunday, December 30, 2018 @ 15:04:23 Author: jelle Revision: 419255
add mando, dep of radon Added: python-mando/trunk/PKGBUILD ----------+ PKGBUILD | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) Added: PKGBUILD =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2018-12-30 15:04:23 UTC (rev 419255) @@ -0,0 +1,33 @@ +# Maintainer: Jelle van der Waa <[email protected]> +# Contributor: Christopher Arndt <aur at chrisarndt dot de> + +pkgname=python-mando +pkgver=0.6.4 +pkgrel=1 +arch=('any') +url="https://github.com/rubik/mando" +license=('MIT') +pkgdesc="Python library which wraps the argparse module to help write flexible CLI applications" +depends=('python' 'python-six') +checkdepends=('python-pytest') +makedepends=('python-setuptools') +source=(https://github.com/rubik/mando/archive/v${pkgver}.tar.gz) + +build() { + cd "mando-${pkgver}" + python setup.py build +} + +check() { + cd "mando-${pkgver}/mando" + pytest tests +} + +package() { + cd "mando-${pkgver}" + python setup.py install --root="$pkgdir" --skip-build --optimize=1 + + # license + install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} +md5sums=('be01e3f88c86e00dc41c61a4341296ab')
