* update rapidfuzz-cpp to 3.0.2-1
This commit is contained in:
parent
476d1c81ba
commit
61f69e3bee
@ -3,29 +3,37 @@
|
|||||||
# Contributor: Pekka Ristola <pekkarr [at] protonmail [dot] com>
|
# Contributor: Pekka Ristola <pekkarr [at] protonmail [dot] com>
|
||||||
|
|
||||||
pkgname=rapidfuzz-cpp
|
pkgname=rapidfuzz-cpp
|
||||||
pkgver=3.0.0
|
pkgver=3.0.2
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc='Rapid fuzzy string matching in C++ using the Levenshtein Distance'
|
pkgdesc='Rapid fuzzy string matching in C++ using the Levenshtein Distance'
|
||||||
arch=(any)
|
arch=(any)
|
||||||
url='https://github.com/maxbachmann/rapidfuzz-cpp'
|
url='https://github.com/maxbachmann/rapidfuzz-cpp'
|
||||||
license=('MIT')
|
license=('MIT')
|
||||||
depends=('cmake')
|
depends=('cmake')
|
||||||
makedepends=('git')
|
makedepends=('catch2')
|
||||||
source=("$pkgname::git+$url#tag=v$pkgver")
|
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
|
||||||
b2sums=('SKIP')
|
b2sums=('49743ab1634649bf5a2b33d91dce1877b0c3135345d9c187eb2d633a1bb804701697d8245a74cfde2a76564abeb3fc8228dce121dcc1a05f74630400d06bb659')
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cmake \
|
cmake \
|
||||||
-B build \
|
-B build \
|
||||||
-S "$pkgname" \
|
-S "$pkgname-$pkgver" \
|
||||||
-D CMAKE_INSTALL_PREFIX=/usr
|
-D RAPIDFUZZ_BUILD_TESTING=ON \
|
||||||
|
-D RAPIDFUZZ_ENABLE_LINTERS=ON \
|
||||||
|
-D CMAKE_BUILD_TYPE=None \
|
||||||
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
||||||
|
-W no-dev
|
||||||
|
|
||||||
cmake --build build
|
cmake --build build
|
||||||
}
|
}
|
||||||
|
|
||||||
|
check() {
|
||||||
|
ctest --test-dir build --output-on-failure
|
||||||
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
DESTDIR="$pkgdir" cmake --install build
|
DESTDIR="$pkgdir" cmake --install build
|
||||||
|
|
||||||
# license
|
# license
|
||||||
install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" "$pkgname/LICENSE"
|
install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" "$pkgname-$pkgver/LICENSE"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user