backports/rapidfuzz: upgrade to 3.0.0

This commit is contained in:
Antoine Martin 2024-04-14 18:29:53 -04:00
parent ecb929e891
commit 80b60ca012
2 changed files with 18 additions and 3 deletions

View file

@ -1,6 +1,6 @@
# Maintainer:
pkgname=rapidfuzz
pkgver=2.2.3
pkgver=3.0.0
pkgrel=0
pkgdesc="Rapid fuzzy string matching in C++ using the Levenshtein Distance"
url="https://github.com/maxbachmann/rapidfuzz-cpp"
@ -11,7 +11,9 @@ makedepends="
samurai
"
checkdepends="catch2-3"
source="$pkgname-$pkgver.tar.gz::https://github.com/maxbachmann/rapidfuzz-cpp/archive/refs/tags/v$pkgver.tar.gz"
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
@ -38,5 +40,6 @@ package() {
}
sha512sums="
5ef4833334ccc3309d43ae4a2644eb57fa2a382b797c791b150b8d78451d7e6d57a8af23d0b7645eecfe539a128d2d8585e2a7380b6772b23cf8fd71d6a7f38b rapidfuzz-2.2.3.tar.gz
c5f20399bd1cfaa057c40cc17be5d730d50c1014553241f80f461a2fa89de670357d17a4f090394170263b09a53aa29238e5eff2caf9064a2a118c42aa14f320 rapidfuzz-cpp-3.0.0.tar.gz
216c5082498830d42d2eb14d3eba35dd08446008916c920db7b55eaf3dd2358f86a61c238315b85fefecf08b9e902dc4db172f91a8479cfd735e53c7b3e03bf5 cstdint.patch
"

View file

@ -0,0 +1,12 @@
diff --git a/rapidfuzz_reference/JaroWinkler.hpp b/rapidfuzz_reference/JaroWinkler.hpp
index 3b717d8..9d415e4 100644
--- a/rapidfuzz_reference/JaroWinkler.hpp
+++ b/rapidfuzz_reference/JaroWinkler.hpp
@@ -2,6 +2,7 @@
/* Copyright © 2022-present Max Bachmann */
#pragma once
+#include <cstdint>
#include "Jaro.hpp"
namespace rapidfuzz_reference {