Update package version to 3.3.3
This commit is contained in:
@@ -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,6 +1,6 @@
|
||||
name: rapidfuzz-cpp
|
||||
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
|
||||
license: MIT
|
||||
architecture: any
|
||||
|
||||
@@ -15,31 +15,25 @@ prepare() {
|
||||
# The build function is executed in the source directory
|
||||
# This function is used to compile the source code
|
||||
build() {
|
||||
mkdir build
|
||||
cd build
|
||||
|
||||
cmake -D RAPIDFUZZ_BUILD_TESTING=ON \
|
||||
-D RAPIDFUZZ_ENABLE_LINTERS=ON \
|
||||
-D CMAKE_BUILD_TYPE=None \
|
||||
cmake -B build \
|
||||
-D RAPIDFUZZ_BUILD_TESTING=ON \
|
||||
-D RAPIDFUZZ_ENABLE_LINTERS=OFF \
|
||||
-D CMAKE_INSTALL_PREFIX=/usr \
|
||||
-W no-dev ..
|
||||
make
|
||||
-W no-dev
|
||||
cmake --build build
|
||||
}
|
||||
|
||||
# The check function is executed in the source directory
|
||||
# This function is used to run tests to verify the package has been compiled correctly
|
||||
check() {
|
||||
cd build
|
||||
|
||||
ctest --output-on-failure
|
||||
ctest --test-dir build --output-on-failure
|
||||
}
|
||||
|
||||
# The package function is executed in the source directory
|
||||
# This function is used to move the compiled files into the output directory
|
||||
package() {
|
||||
cd build
|
||||
|
||||
make DESTDIR="$BPM_OUTPUT" install
|
||||
DESTDIR="$BPM_OUTPUT" cmake --install build
|
||||
|
||||
# Install package license
|
||||
install -Dm644 "$BPM_SOURCE"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/rapidfuzz-cpp/LICENSE
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user