[arch-commits] Commit in (4 files)

Felix Yan felixonmars at archlinux.org
Thu Sep 24 21:30:39 UTC 2020


    Date: Thursday, September 24, 2020 @ 21:30:38
  Author: felixonmars
Revision: 711927

addpkg: python-click-didyoumean 0.0.3-1

Added:
  python-click-didyoumean/
  python-click-didyoumean/repos/
  python-click-didyoumean/trunk/
  python-click-didyoumean/trunk/PKGBUILD

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

Added: python-click-didyoumean/trunk/PKGBUILD
===================================================================
--- python-click-didyoumean/trunk/PKGBUILD	                        (rev 0)
+++ python-click-didyoumean/trunk/PKGBUILD	2020-09-24 21:30:38 UTC (rev 711927)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-click-didyoumean
+pkgver=0.0.3
+pkgrel=1
+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