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

Evangelos Foutras foutrelis at gemini.archlinux.org
Wed Dec 1 14:51:37 UTC 2021


    Date: Wednesday, December 1, 2021 @ 14:51:37
  Author: foutrelis
Revision: 1059422

archrelease: copy trunk to community-staging-x86_64

Added:
  python-editdistance-s/repos/community-staging-x86_64/
  python-editdistance-s/repos/community-staging-x86_64/PKGBUILD
    (from rev 1059421, python-editdistance-s/trunk/PKGBUILD)

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

Copied: python-editdistance-s/repos/community-staging-x86_64/PKGBUILD (from rev 1059421, python-editdistance-s/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-12-01 14:51:37 UTC (rev 1059422)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-editdistance-s
+pkgver=1.0.0
+pkgrel=2
+pkgdesc="Fast implementation of the edit distance (Levenshtein distance)"
+url="https://github.com/asottile/editdistance-s"
+license=('MIT')
+arch=('x86_64')
+depends=('python-cffi')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest')
+source=("https://github.com/asottile/editdistance-s/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('148234a38f54f70a2d6bc64f6a166a8954c79fb89d5f5c0bf3f041fe60056332901484a0626e218a72ae992f476305cbb662dfa0acdda794727fc682c569d718')
+
+build() {
+  cd editdistance-s-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd editdistance-s-$pkgver
+  PYTHONPATH="$PWD/build/lib.linux-x86_64-3.9" pytest
+}
+
+package() {
+  cd editdistance-s-$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