Update package version to 4.0.2

This commit is contained in:
2025-05-10 10:50:01 +03:00
parent 264e6a9b7e
commit 06781b3967
3 changed files with 14 additions and 7 deletions
+5 -6
View File
@@ -15,16 +15,14 @@ prepare() {
# The build function is executed in the source directory
# This function is used to compile the source code
build() {
# Install in /usr/lib instead of /usr/lib64
sed -i '/"lib64"/s/64//' Modules/GNUInstallDirs.cmake
./bootstrap --prefix=/usr \
--system-libs \
--mandir=/share/man \
--no-system-jsoncpp \
--no-system-cppdap \
--no-system-librhash \
--no-system-libarchive \
--no-system-libuv \
--no-system-nghttp2 \
--docdir=/share/doc/cmake
make
}
@@ -32,12 +30,13 @@ 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() {
LC_ALL=en_US.UTF-8 bin/ctest ${MAKEFLAGS} -O cmake-test.log
LC_ALL=en_US.UTF-8 bin/ctest -j$(nproc) -E "RunCMake.ExternalProject"
}
# The package function is executed in the source directory
# This function is used to move the compiled files into the output directory
package() {
make DESTDIR="$BPM_OUTPUT" install
install -Dm 644 Copyright.txt "$BPM_OUTPUT"/usr/share/licenses/Copyright.txt
install -Dm644 LICENSE.rst "$BPM_OUTPUT"/usr/share/licenses/cmake/LICENSE.rst
}