[arch-commits] Commit in python-ukkonen/repos (2 files)
Felix Yan
felixonmars at gemini.archlinux.org
Thu Dec 30 23:03:38 UTC 2021
Date: Thursday, December 30, 2021 @ 23:03:38
Author: felixonmars
Revision: 1089023
archrelease: copy trunk to community-x86_64
Added:
python-ukkonen/repos/community-x86_64/
python-ukkonen/repos/community-x86_64/PKGBUILD
(from rev 1089022, python-ukkonen/trunk/PKGBUILD)
----------+
PKGBUILD | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
Copied: python-ukkonen/repos/community-x86_64/PKGBUILD (from rev 1089022, python-ukkonen/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2021-12-30 23:03:38 UTC (rev 1089023)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-ukkonen
+pkgver=1.0.1
+pkgrel=1
+pkgdesc="Implementation of bounded Levenshtein distance (Ukkonen)"
+url="https://github.com/asottile/ukkonen"
+license=('MIT')
+arch=('x86_64')
+depends=('python-cffi')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest')
+source=("https://github.com/asottile/ukkonen/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('23978b8e22454155e7d8a0d2dbb963f4aa5a6be6cdd75a74e8ec5e06fe32a96b6fc14f0f6d03089726bf761ad6d833dc68ea3fb6cad1ad2ee5b259043072875a')
+
+build() {
+ cd ukkonen-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd ukkonen-$pkgver
+ PYTHONPATH=build/lib.linux-$CARCH-3.10 python -m pytest
+}
+
+package() {
+ cd ukkonen-$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