* update rapidfuzz-cpp to 3.0.2-1

This commit is contained in:
Alexander Baldeck 2024-04-09 19:40:48 +02:00
parent 476d1c81ba
commit 61f69e3bee

View File

@ -3,29 +3,37 @@
# Contributor: Pekka Ristola <pekkarr [at] protonmail [dot] com>
pkgname=rapidfuzz-cpp
pkgver=3.0.0
pkgver=3.0.2
pkgrel=1
pkgdesc='Rapid fuzzy string matching in C++ using the Levenshtein Distance'
arch=(any)
url='https://github.com/maxbachmann/rapidfuzz-cpp'
license=('MIT')
depends=('cmake')
makedepends=('git')
source=("$pkgname::git+$url#tag=v$pkgver")
b2sums=('SKIP')
makedepends=('catch2')
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
b2sums=('49743ab1634649bf5a2b33d91dce1877b0c3135345d9c187eb2d633a1bb804701697d8245a74cfde2a76564abeb3fc8228dce121dcc1a05f74630400d06bb659')
build() {
cmake \
-B build \
-S "$pkgname" \
-D CMAKE_INSTALL_PREFIX=/usr
-S "$pkgname-$pkgver" \
-D RAPIDFUZZ_BUILD_TESTING=ON \
-D RAPIDFUZZ_ENABLE_LINTERS=ON \
-D CMAKE_BUILD_TYPE=None \
-D CMAKE_INSTALL_PREFIX=/usr \
-W no-dev
cmake --build build
}
check() {
ctest --test-dir build --output-on-failure
}
package() {
DESTDIR="$pkgdir" cmake --install build
# license
install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" "$pkgname/LICENSE"
install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" "$pkgname-$pkgver/LICENSE"
}