Update package version to 3.3.1

This commit is contained in:
2025-09-10 11:42:07 +03:00
parent 11d8aa2358
commit 56bf5c621e
3 changed files with 20 additions and 6 deletions
+7 -4
View File
@@ -21,23 +21,26 @@ build() {
cmake -DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_SHARED_LIBS=ON \
-DBUILD_TESTING=ON \
..
make
-DCMAKE_POLICY_VERSION_MINIMUM=3.5 ..
cmake --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
make test
ctest
}
# 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 .
# Install package license
install -Dm644 "$BPM_SOURCE"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/double-conversion/LICENSE
install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/double-conversion/COPYING
}