ayaports/backports/rapidfuzz/APKBUILD

43 lines
958 B
Text
Raw Normal View History

2023-08-31 17:38:59 +00:00
# Maintainer:
2023-05-05 13:39:18 +00:00
pkgname=rapidfuzz
2023-08-31 17:38:59 +00:00
pkgver=2.0.0
pkgrel=1
2023-05-05 13:39:18 +00:00
pkgdesc="Rapid fuzzy string matching in C++ using the Levenshtein Distance"
url="https://github.com/maxbachmann/rapidfuzz-cpp"
2023-08-31 17:38:59 +00:00
arch="all"
2023-05-05 13:39:18 +00:00
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="
2023-08-31 17:38:59 +00:00
02af141b123545303d634ffe84fbe83e635f06c9ffa3a6506661e53beb22fe7221942b3e46d33b2a49ef929c5de9acfb00c48cb5685c760506c5fcf37c716f9a rapidfuzz-2.0.0.tar.gz
2023-05-05 13:39:18 +00:00
"