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-11-24 18:31:47 +00:00
pkgver=2.2.3
pkgrel=0
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-11-24 18:31:47 +00:00
5ef4833334ccc3309d43ae4a2644eb57fa2a382b797c791b150b8d78451d7e6d57a8af23d0b7645eecfe539a128d2d8585e2a7380b6772b23cf8fd71d6a7f38b rapidfuzz-2.2.3.tar.gz
2023-05-05 13:39:18 +00:00
"