[arch-commits] Commit in python-mando/trunk (PKGBUILD)

Jelle van der Waa jelle at archlinux.org
Sun Dec 30 15:04:24 UTC 2018


    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 <jelle at archlinux.org>
+# 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')



More information about the arch-commits mailing list