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

Evangelos Foutras foutrelis at archlinux.org
Mon Nov 9 15:38:53 UTC 2020


    Date: Monday, November 9, 2020 @ 15:38:53
  Author: foutrelis
Revision: 747053

archrelease: copy trunk to community-staging-any

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

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

Copied: python-argparse/repos/community-staging-any/PKGBUILD (from rev 747052, python-argparse/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-09 15:38:53 UTC (rev 747053)
@@ -0,0 +1,33 @@
+# Maintainer:  Jonathan Steel <jsteel at archlinux.org>
+# Contributor: mawcomw <mawcomw at gmail.com>
+
+pkgbase=python-argparse
+pkgname=('python-argparse')
+pkgver=1.4.0
+pkgrel=8
+arch=('any')
+url="https://pypi.python.org/pypi/argparse"
+license=('Python')
+makedepends=('python' 'python-setuptools')
+source=("https://pypi.python.org/packages/source/a/argparse/argparse-$pkgver.tar.gz")
+md5sums=('08062d2ceb6596fcbc5a7e725b53746f')
+
+build() {
+  cd "$srcdir"/argparse-$pkgver
+  python setup.py build
+}
+
+check(){
+  cd "$srcdir"/argparse-$pkgver
+  python setup.py test
+}
+
+package_python-argparse() {
+  depends=('python')
+  pkgdesc="Python3 command-line parsing library"
+
+  cd argparse-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+
+  install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
+}



More information about the arch-commits mailing list