ayaports/backports/rapidfuzz/APKBUILD

46 lines
1.1 KiB
Text
Raw Permalink Normal View History

2024-12-14 18:24:44 +00:00
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
2023-05-05 13:39:18 +00:00
pkgname=rapidfuzz
2024-12-18 13:44:16 +00:00
pkgver=3.2.0
2023-11-24 18:31:47 +00:00
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"
2024-04-14 22:29:53 +00:00
source="$pkgname-cpp-$pkgver.tar.gz::https://github.com/maxbachmann/rapidfuzz-cpp/archive/refs/tags/v$pkgver.tar.gz
cstdint.patch
"
2023-05-05 13:39:18 +00:00
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="
2024-12-18 13:44:16 +00:00
cf306fc4a6c0b6fc1a1c3b0b235aa54588bd87a5d07f96c1bc9711a08159ca71580b5958e66e8b4358d34e522041934903079aabe6e5a450cece7d6db6edcbe0 rapidfuzz-cpp-3.2.0.tar.gz
2024-04-14 22:29:53 +00:00
216c5082498830d42d2eb14d3eba35dd08446008916c920db7b55eaf3dd2358f86a61c238315b85fefecf08b9e902dc4db172f91a8479cfd735e53c7b3e03bf5 cstdint.patch
2023-05-05 13:39:18 +00:00
"