Update package version to 4.0.2
This commit is contained in:
@@ -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"
|
||||||
@@ -1,7 +1,9 @@
|
|||||||
name: cmake
|
name: cmake
|
||||||
description: A Powerful Software Build System
|
description: A Powerful Software Build System
|
||||||
version: 3.28.3
|
version: 4.0.2
|
||||||
url: https://cmake.org/
|
url: https://cmake.org/
|
||||||
license: BSD-3-Clause
|
license: BSD-3-Clause
|
||||||
architecture: any
|
architecture: any
|
||||||
|
depends: ["curl","expat","gcc","glibc","jsoncpp","libarchive","libuv","libnghttp2","ncurses","zlib"]
|
||||||
|
optional_depends: ["make","ninja"]
|
||||||
type: source
|
type: source
|
||||||
|
|||||||
@@ -15,16 +15,14 @@ prepare() {
|
|||||||
# The build function is executed in the source directory
|
# The build function is executed in the source directory
|
||||||
# This function is used to compile the source code
|
# This function is used to compile the source code
|
||||||
build() {
|
build() {
|
||||||
|
# Install in /usr/lib instead of /usr/lib64
|
||||||
sed -i '/"lib64"/s/64//' Modules/GNUInstallDirs.cmake
|
sed -i '/"lib64"/s/64//' Modules/GNUInstallDirs.cmake
|
||||||
|
|
||||||
./bootstrap --prefix=/usr \
|
./bootstrap --prefix=/usr \
|
||||||
--system-libs \
|
--system-libs \
|
||||||
--mandir=/share/man \
|
--mandir=/share/man \
|
||||||
--no-system-jsoncpp \
|
|
||||||
--no-system-cppdap \
|
--no-system-cppdap \
|
||||||
--no-system-librhash \
|
--no-system-librhash \
|
||||||
--no-system-libarchive \
|
|
||||||
--no-system-libuv \
|
|
||||||
--no-system-nghttp2 \
|
|
||||||
--docdir=/share/doc/cmake
|
--docdir=/share/doc/cmake
|
||||||
make
|
make
|
||||||
}
|
}
|
||||||
@@ -32,12 +30,13 @@ build() {
|
|||||||
# The check function is executed in the source directory
|
# The check function is executed in the source directory
|
||||||
# This function is used to run tests to verify the package has been compiled correctly
|
# This function is used to run tests to verify the package has been compiled correctly
|
||||||
check() {
|
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
|
# The package function is executed in the source directory
|
||||||
# This function is used to move the compiled files into the output directory
|
# This function is used to move the compiled files into the output directory
|
||||||
package() {
|
package() {
|
||||||
make DESTDIR="$BPM_OUTPUT" install
|
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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user