[arch-commits] Commit in (3 files)

Antonio Rojas arojas at gemini.archlinux.org
Wed Aug 3 10:04:09 UTC 2022


    Date: Wednesday, August 3, 2022 @ 10:04:08
  Author: arojas
Revision: 1259985

New python-levenshtein dependency

Added:
  python-rapidfuzz-capi/
  python-rapidfuzz-capi/trunk/
  python-rapidfuzz-capi/trunk/PKGBUILD

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

Added: python-rapidfuzz-capi/trunk/PKGBUILD
===================================================================
--- python-rapidfuzz-capi/trunk/PKGBUILD	                        (rev 0)
+++ python-rapidfuzz-capi/trunk/PKGBUILD	2022-08-03 10:04:08 UTC (rev 1259985)
@@ -0,0 +1,26 @@
+# Maintainer:
+# Contributor: Pekka Ristola <pekkarr [at] protonmail [dot] com>
+
+_name=rapidfuzz_capi
+pkgname=python-$_name
+pkgver=1.0.5
+pkgrel=3
+pkgdesc='C-API of RapidFuzz, which can be used to extend RapidFuzz from separate packages'
+arch=(any)
+url='https://github.com/maxbachmann/rapidfuzz_capi'
+license=(MIT)
+depends=(python)
+makedepends=(python-build python-installer python-setuptools python-wheel)
+source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz)
+sha256sums=('b3af179874b28364ba1b7850e37d0d353de9cf5b844e3569c023b74da3a9c68e')
+
+build() {
+  cd $_name-$pkgver
+  python -m build --wheel --no-isolation
+}
+
+package() {
+  cd $_name-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
+  install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname LICENSE
+}



More information about the arch-commits mailing list