Update package version to 3.3.3

This commit is contained in:
2025-09-20 10:20:07 +03:00
parent 41e71af359
commit 8d62a2d782
3 changed files with 21 additions and 15 deletions
+12
View File
@@ -0,0 +1,12 @@
#!/bin/bash
# Github repository
REPO="rapidfuzz/rapidfuzz-cpp"
# Get tag name using Github Rest API
TAG_NAME=$(curl -s -L -H "X-GitHub-Api-Version: 2022-11-28" -H "Authorization: token ${GITHUB_API_TOKEN}" https://api.github.com/repos/"$REPO"/releases/latest | jq -r '.tag_name')
# Trim 'v' character in TAG_NAME variable
VERSION=$(echo "$TAG_NAME" | tr -d 'v')
echo "$VERSION"
+1 -1
View File
@@ -1,6 +1,6 @@
name: rapidfuzz-cpp name: rapidfuzz-cpp
description: Rapid fuzzy string matching in C++ using the Levenshtein Distance description: Rapid fuzzy string matching in C++ using the Levenshtein Distance
version: 3.3.2 version: 3.3.3
url: https://github.com/rapidfuzz/rapidfuzz-cpp url: https://github.com/rapidfuzz/rapidfuzz-cpp
license: MIT license: MIT
architecture: any architecture: any
+8 -14
View File
@@ -15,31 +15,25 @@ prepare() {
# The build function is executed in the source directory # The build function is executed in the source directory
# This function is used to compile the source code # This function is used to compile the source code
build() { build() {
mkdir build cmake -B build \
cd build -D RAPIDFUZZ_BUILD_TESTING=ON \
-D RAPIDFUZZ_ENABLE_LINTERS=OFF \
cmake -D RAPIDFUZZ_BUILD_TESTING=ON \
-D RAPIDFUZZ_ENABLE_LINTERS=ON \
-D CMAKE_BUILD_TYPE=None \
-D CMAKE_INSTALL_PREFIX=/usr \ -D CMAKE_INSTALL_PREFIX=/usr \
-W no-dev .. -W no-dev
make cmake --build build
} }
# The check function is executed in the source directory # The check function is executed in the source directory
# This function is used to run tests to verify the package has been compiled correctly # This function is used to run tests to verify the package has been compiled correctly
check() { check() {
cd build ctest --test-dir build --output-on-failure
ctest --output-on-failure
} }
# The package function is executed in the source directory # The package function is executed in the source directory
# This function is used to move the compiled files into the output directory # This function is used to move the compiled files into the output directory
package() { package() {
cd build DESTDIR="$BPM_OUTPUT" cmake --install build
make DESTDIR="$BPM_OUTPUT" install
# Install package license
install -Dm644 "$BPM_SOURCE"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/rapidfuzz-cpp/LICENSE install -Dm644 "$BPM_SOURCE"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/rapidfuzz-cpp/LICENSE
} }