# Maintainer: pkgname=rapidfuzz pkgver=2.0.0 pkgrel=1 pkgdesc="Rapid fuzzy string matching in C++ using the Levenshtein Distance" url="https://github.com/maxbachmann/rapidfuzz-cpp" arch="all" license="MIT" makedepends=" cmake samurai " checkdepends="catch2-3" source="$pkgname-$pkgver.tar.gz::https://github.com/maxbachmann/rapidfuzz-cpp/archive/refs/tags/v$pkgver.tar.gz" builddir="$srcdir/rapidfuzz-cpp-$pkgver" case "$CARCH" in x86) # float rounding options="!check" ;; esac build() { cmake -B build -G Ninja \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DRAPIDFUZZ_BUILD_TESTING="$(want_check && echo ON || echo OFF)" cmake --build build } check() { ctest --test-dir build --output-on-failure } package() { DESTDIR="$pkgdir" cmake --install build } sha512sums=" 02af141b123545303d634ffe84fbe83e635f06c9ffa3a6506661e53beb22fe7221942b3e46d33b2a49ef929c5de9acfb00c48cb5685c760506c5fcf37c716f9a rapidfuzz-2.0.0.tar.gz "