diff options
author | Julian Daube | 2020-06-01 12:40:46 +0200 |
---|---|---|
committer | Julian Daube | 2020-06-01 12:40:46 +0200 |
commit | feb615c6fbe3248d49c520e8e32faa1647694cef (patch) | |
tree | 6b1fa0defef78ad6fc868cdb143a7649924636d2 | |
download | aur-feb615c6fbe3248d49c520e8e32faa1647694cef.tar.gz |
initial version
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 52 |
2 files changed, 71 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..9ed23e32d439 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = python-rapidfuzz-git + pkgdesc = Rapid fuzzy string matching in Python using the Levenshtein Distance + pkgver = 0.6.3.r73.g0007571 + pkgrel = 1 + url = https://github.com/maxbachmann/rapidfuzz + arch = any + license = MIT + makedepends = python-setuptools + makedepends = gcc + makedepends = python-pytest + depends = python + provides = python-rapidfuzz + source = python-rapidfuzz-git::git+https://github.com/maxbachmann/rapidfuzz + source = python-rapidfuzz-git-cpp::git+https://github.com/maxbachmann/rapidfuzz-cpp + md5sums = SKIP + md5sums = SKIP + +pkgname = python-rapidfuzz-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..00ad4c4fee31 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,52 @@ +# Maintainer: Julian Daube <joposter (at) gmail (dot) com> +# Contributor: Julian Daube <joposter (at) gmail (dot) com> + +pkgname=python-rapidfuzz-git +pkgver=0.6.3.r73.g0007571 +pkgrel=1 +pkgdesc="Rapid fuzzy string matching in Python using the Levenshtein Distance" + +url="https://github.com/maxbachmann/rapidfuzz" +arch=("any") +license=("MIT") +provides=("python-rapidfuzz") + +source=("$pkgname::git+https://github.com/maxbachmann/rapidfuzz" + "$pkgname-cpp::git+https://github.com/maxbachmann/rapidfuzz-cpp" +) + +depends=("python") +makedepends=("python-setuptools" "gcc" "python-pytest") + +pkgver() { + cd "$pkgname" + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +prepare() { + cd "$pkgname" + git submodule init + git config submodule."src/rapidfuzz-cpp".url "$srcdir/"$pkgname-cpp + git submodule update +} + +check() { + cd "$pkgname" + pytest +} + +build() { + cd "$pkgname" + python setup.py build +} + +package() { + cd "$pkgname" + python setup.py install --root="$pkgdir" --optimize=1 --skip-build + + install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/python-rapidfuzz/LICENSE +} + + +md5sums=("SKIP" "SKIP") + |