Date: Wednesday, August 3, 2022 @ 10:04:22 Author: arojas Revision: 1259986
archrelease: copy trunk to community-any Added: python-rapidfuzz-capi/repos/ python-rapidfuzz-capi/repos/community-any/ python-rapidfuzz-capi/repos/community-any/PKGBUILD (from rev 1259985, python-rapidfuzz-capi/trunk/PKGBUILD) ----------+ PKGBUILD | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) Copied: python-rapidfuzz-capi/repos/community-any/PKGBUILD (from rev 1259985, python-rapidfuzz-capi/trunk/PKGBUILD) =================================================================== --- repos/community-any/PKGBUILD (rev 0) +++ repos/community-any/PKGBUILD 2022-08-03 10:04:22 UTC (rev 1259986) @@ -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 +}