[arch-commits] Commit in (4 files)

Felix Yan felixonmars at gemini.archlinux.org
Thu Dec 30 23:03:30 UTC 2021


    Date: Thursday, December 30, 2021 @ 23:03:30
  Author: felixonmars
Revision: 1089022

addpkg: python-ukkonen 1.0.1-1

Added:
  python-ukkonen/
  python-ukkonen/repos/
  python-ukkonen/trunk/
  python-ukkonen/trunk/PKGBUILD

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

Added: python-ukkonen/trunk/PKGBUILD
===================================================================
--- python-ukkonen/trunk/PKGBUILD	                        (rev 0)
+++ python-ukkonen/trunk/PKGBUILD	2021-12-30 23:03:30 UTC (rev 1089022)
@@ -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