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

Felix Yan felixonmars at archlinux.org
Mon Nov 9 16:53:12 UTC 2020


    Date: Monday, November 9, 2020 @ 16:53:12
  Author: felixonmars
Revision: 747657

archrelease: copy trunk to community-staging-any

Added:
  python-click-didyoumean/repos/community-staging-any/
  python-click-didyoumean/repos/community-staging-any/PKGBUILD
    (from rev 747655, python-click-didyoumean/trunk/PKGBUILD)

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

Copied: python-click-didyoumean/repos/community-staging-any/PKGBUILD (from rev 747655, python-click-didyoumean/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-09 16:53:12 UTC (rev 747657)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-click-didyoumean
+pkgver=0.0.3
+pkgrel=2
+pkgdesc="Enable git-like did-you-mean feature in click"
+url="https://github.com/click-contrib/click-didyoumean"
+license=('MIT')
+arch=('any')
+depends=('python-click')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest')
+source=("https://github.com/click-contrib/click-didyoumean/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('6e832881817645eb8fa3a40acaab74a7f0dcc798aa984781a011b2ef78da2a4ae71ff2d58907bcbb35adbfc659727223c28c3622788eef05ecbdf758d6ac889d')
+
+build() {
+  cd click-didyoumean-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd click-didyoumean-$pkgver
+  python -m pytest || :
+}
+
+package() {
+  cd click-didyoumean-$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