Date: Thursday, April 6, 2023 @ 14:48:28
  Author: felixonmars
Revision: 1439331

archrelease: copy trunk to community-staging-any

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

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

Copied: python-argparse/repos/community-staging-any/PKGBUILD (from rev 1439328, 
python-argparse/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-06 14:48:28 UTC (rev 1439331)
@@ -0,0 +1,30 @@
+# Maintainer:  Jonathan Steel <jsteel at archlinux.org>
+# Contributor: mawcomw <[email protected]>
+
+pkgname=python-argparse
+pkgver=1.4.0
+pkgrel=14
+arch=('any')
+pkgdesc="Python3 command-line parsing library"
+url="https://pypi.python.org/pypi/argparse";
+license=('Python')
+depends=('python')
+makedepends=('python' 'python-setuptools')
+source=("https://pypi.python.org/packages/source/a/argparse/argparse-$pkgver.tar.gz";)
+sha256sums=('62b089a55be1d8949cd2bc7e0df0bddb9e028faefc8c32038cc84862aefdd6e4')
+
+build() {
+  cd argparse-$pkgver
+  python setup.py build
+}
+
+check(){
+  cd argparse-$pkgver
+  python -m unittest discover -vs test
+}
+
+package() {
+  cd argparse-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
+}

Reply via email to