blob: 56d47bbc2690a24d3ebc86479b0ae1408133ce88 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
# Contributor: Caltlgin Stsodaat <contact@fossdaily.xyz>
_pkgname='rapidfuzz'
pkgname="python-${_pkgname}"
pkgver=2.0.7
pkgrel=1
pkgdesc='Rapid fuzzy string matching in Python and C++ using the Levenshtein Distance'
arch=('x86_64')
url='https://github.com/maxbachmann/rapidfuzz'
license=('MIT')
depends=('python-jarowinkler')
makedepends=(
'python-numpy'
'python-rapidfuzz-capi'
'python-scikit-build'
'python-setuptools'
)
optdepends=('python-numpy')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
sha256sums=('93bf42784fd74ebf1a8e89ca1596e9bea7f3ac4a61b825ecc6eb2d9893ad6844')
build() {
cd "${_pkgname}-${pkgver}"
python setup.py build \
-G "Unix Makefiles" \
--build-type None \
-DCMAKE_CXX_FLAGS_INIT=-fmacro-prefix-map="$srcdir"=. # remove references to srcdir
}
package() {
cd "${_pkgname}-${pkgver}"
python setup.py --skip-cmake install --root="$pkgdir" --optimize=1 --skip-build
install -Dvm644 'README.md' -t "${pkgdir}/usr/share/doc/${pkgname}"
install -Dvm644 'LICENSE' -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
# vim: ts=2 sw=2 et:
|