1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
6 pkgdesc="Implementation of bounded Levenshtein distance (Ukkonen)"
7 url="https://github.com/asottile/ukkonen"
10 depends=('python-cffi')
11 makedepends=('python-setuptools')
12 checkdepends=('python-pytest')
13 source=("https://github.com/asottile/ukkonen/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
14 sha512sums=('23978b8e22454155e7d8a0d2dbb963f4aa5a6be6cdd75a74e8ec5e06fe32a96b6fc14f0f6d03089726bf761ad6d833dc68ea3fb6cad1ad2ee5b259043072875a')
23 PYTHONPATH=build/lib.linux-$CARCH-cpython-311 python -m pytest
28 python setup.py install --root="$pkgdir" --optimize=1
30 install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/