Date: Thursday, April 6, 2023 @ 13:52:49
  Author: felixonmars
Revision: 1439050

archrelease: copy trunk to community-staging-any

Added:
  python-configargparse/repos/community-staging-any/
  python-configargparse/repos/community-staging-any/PKGBUILD
    (from rev 1439046, python-configargparse/trunk/PKGBUILD)

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

Copied: python-configargparse/repos/community-staging-any/PKGBUILD (from rev 
1439046, python-configargparse/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-06 13:52:49 UTC (rev 1439050)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-configargparse
+pkgver=1.5.3
+pkgrel=3
+pkgdesc='A drop-in replacement for argparse that allows options to also be set 
via config files and/or environment variables'
+arch=('any')
+url='https://github.com/bw2/ConfigArgParse'
+license=('MIT')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest' 'python-tests' 'python-yaml')
+optdepends=('python-yaml: for YAML support')
+source=("https://github.com/bw2/ConfigArgParse/archive/v$pkgver/$pkgname-$pkgver.tar.gz";)
+sha512sums=('bdc0340bd92cfd5319743a4860af80fc2352f38b156031856c2b39b8c8ad59461281009030c4451dd464334a829b8143c765979cfc9b8ccbe9fbdcb0e08ac7b4')
+
+build() {
+  cd ConfigArgParse-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd ConfigArgParse-$pkgver
+  pytest
+}
+
+package() {
+  cd ConfigArgParse-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}

Reply via email to