[arch-commits] Commit in (4 files)

Felix Yan felixonmars at archlinux.org
Fri Mar 20 17:33:19 UTC 2020


    Date: Friday, March 20, 2020 @ 17:33:19
  Author: felixonmars
Revision: 601947

addpkg: python-click-default-group 1.2.2-1

Added:
  python-click-default-group/
  python-click-default-group/repos/
  python-click-default-group/trunk/
  python-click-default-group/trunk/PKGBUILD

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

Added: python-click-default-group/trunk/PKGBUILD
===================================================================
--- python-click-default-group/trunk/PKGBUILD	                        (rev 0)
+++ python-click-default-group/trunk/PKGBUILD	2020-03-20 17:33:19 UTC (rev 601947)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-click-default-group
+pkgver=1.2.2
+pkgrel=1
+pkgdesc="Extends click.Group to invoke a command without explicit subcommand name"
+url="https://github.com/click-contrib/click-default-group"
+license=('BSD')
+arch=('any')
+depends=('python-click')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/click-contrib/click-default-group/archive/v$pkgver.tar.gz")
+sha512sums=('6f296d154813e0c3dbf8e435c4c1b4394f51a000320c5585aeb78b81f30fe15bd27a8aad0fdbb71fccb88dc3083682519f1dd06572c8d5c35639fb9c3acf73fa')
+
+build() {
+  cd click-default-group-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd click-default-group-$pkgver
+  python -m pytest
+}
+
+package() {
+  cd click-default-group-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}



More information about the arch-commits mailing list