archrelease: copy trunk to community-x86_64
[ArchLinux/community.git] / python-ukkonen / trunk / PKGBUILD
bloba713bf8c8207660d57865e771234c3b44a07fa79
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=python-ukkonen
4 pkgver=1.0.1
5 pkgrel=2
6 pkgdesc="Implementation of bounded Levenshtein distance (Ukkonen)"
7 url="https://github.com/asottile/ukkonen"
8 license=('MIT')
9 arch=('x86_64')
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')
16 build() {
17   cd ukkonen-$pkgver
18   python setup.py build
21 check() {
22   cd ukkonen-$pkgver
23   PYTHONPATH=build/lib.linux-$CARCH-cpython-311 python -m pytest
26 package() {
27   cd ukkonen-$pkgver
28   python setup.py install --root="$pkgdir" --optimize=1
30   install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/