Date: Friday, February 19, 2021 @ 15:57:37
  Author: ffy00
Revision: 865943

upgpkg: python-sphinx-argparse-cli 1.5.0-1

Added:
  python-sphinx-argparse-cli/trunk/PKGBUILD

----------+
 PKGBUILD |   40 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

Added: PKGBUILD
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2021-02-19 15:57:37 UTC (rev 865943)
@@ -0,0 +1,40 @@
+# Maintainer: Filipe Laíns (FFY00) <la...@archlinux.org>
+
+_pkgname=sphinx-argparse-cli
+pkgname=python-$_pkgname
+pkgver=1.5.0
+pkgrel=1
+pkgdesc='Render CLI arguments (sub-commands friendly) defined by argparse 
module'
+arch=('any')
+url='https://github.com/gaborbernat/sphinx-argparse-cli'
+license=('MIT')
+depends=('python' 'python-sphinx' 'python-docutils-stubs')
+makedepends=('python-setuptools')
+#checkdepends=('python-pytest')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
+sha512sums=('95b5ef079620ddbe02e14e120fb58abbb053ae7643c465be0d0bb4888b32ac9e968e0043e6871b09a40abb5c461bcb13c8acd406e4a5859d4086c888409bbad3')
+
+build() {
+  cd $_pkgname-$pkgver
+
+  python setup.py build
+}
+
+#check() {
+#  cd $_pkgname-$pkgver
+#
+#  python -m venv --system-site-packages test-env
+#  test-env/bin/python setup.py install --skip-build
+#
+#  test-env/bin/python -m pytest
+#}
+
+package() {
+  cd $_pkgname-$pkgver
+
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+  install -Dm 644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:

Reply via email to