ayaports/backports/rapidfuzz/APKBUILD
Antoine Martin ddecef58e6
All checks were successful
/ lint (pull_request) Successful in 30s
/ build-x86_64 (pull_request) Successful in 1m14s
/ deploy-x86_64 (pull_request) Successful in 25s
/ deploy-aarch64 (pull_request) Successful in 54s
/ build-aarch64 (pull_request) Successful in 3m15s
backports/rapidfuzz: upgrade to 3.1.1
2024-12-14 13:24:44 -05:00

45 lines
1.1 KiB
Text

# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
pkgname=rapidfuzz
pkgver=3.1.1
pkgrel=0
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-cpp-$pkgver.tar.gz::https://github.com/maxbachmann/rapidfuzz-cpp/archive/refs/tags/v$pkgver.tar.gz
cstdint.patch
"
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="
204ee06c1e51b786f0a2efd32a1c2467c3bff2738e8258e6e8fe44b5569afe7c665af1051fdd05dcc98704f3045f5bd2afcba5dba3fc0b34e2facf8944478b48 rapidfuzz-cpp-3.1.1.tar.gz
216c5082498830d42d2eb14d3eba35dd08446008916c920db7b55eaf3dd2358f86a61c238315b85fefecf08b9e902dc4db172f91a8479cfd735e53c7b3e03bf5 cstdint.patch
"