Update package version to 3.3.3
This commit is contained in:
@@ -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