From 06781b3967e8d33983464b1944416124c9412fd1 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Sat, 10 May 2025 10:50:01 +0300 Subject: [PATCH] Update package version to 4.0.2 --- check-version.sh | 6 ++++++ pkg.info | 4 +++- source.sh | 11 +++++------ 3 files changed, 14 insertions(+), 7 deletions(-) create mode 100644 check-version.sh diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..f935a41 --- /dev/null +++ b/check-version.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +# Get version number from cmake website +VERSION=$(curl -s -L https://cmake.org/download/ | grep -o -E 'Latest Release \((.*)\)' | cut -d '(' -f2 | tr -d ')') + +echo "$VERSION" diff --git a/pkg.info b/pkg.info index 4854d2a..2775a0e 100644 --- a/pkg.info +++ b/pkg.info @@ -1,7 +1,9 @@ name: cmake description: A Powerful Software Build System -version: 3.28.3 +version: 4.0.2 url: https://cmake.org/ license: BSD-3-Clause architecture: any +depends: ["curl","expat","gcc","glibc","jsoncpp","libarchive","libuv","libnghttp2","ncurses","zlib"] +optional_depends: ["make","ninja"] type: source diff --git a/source.sh b/source.sh index 382b1c8..234dc33 100644 --- a/source.sh +++ b/source.sh @@ -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 }