[arch-commits] Commit in python-sphinx-argparse-cli/repos (2 files)

Filipe Laíns ffy00 at archlinux.org
Fri Feb 19 15:57:40 UTC 2021


    Date: Friday, February 19, 2021 @ 15:57:40
  Author: ffy00
Revision: 865944

archrelease: copy trunk to community-any

Added:
  python-sphinx-argparse-cli/repos/community-any/
  python-sphinx-argparse-cli/repos/community-any/PKGBUILD
    (from rev 865943, python-sphinx-argparse-cli/trunk/PKGBUILD)

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

Copied: python-sphinx-argparse-cli/repos/community-any/PKGBUILD (from rev 865943, python-sphinx-argparse-cli/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2021-02-19 15:57:40 UTC (rev 865944)
@@ -0,0 +1,40 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at 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:



More information about the arch-commits mailing list