File indexing completed on 2024-05-19 04:43:19

0001 #!/bin/bash
0002 # SPDX-FileCopyrightText: 2019-2022 Volker Krause <vkrause@kde.org>
0003 # SPDX-License-Identifier: BSD-2-Clause
0004 set -e
0005 set -x
0006 
0007 CMAKE_VERSION=3.27.9
0008 
0009 # install build dependencies
0010 yum install -y centos-release-scl
0011 yum install -y \
0012     devtoolset-11-gcc-c++ \
0013     rh-git227 \
0014     glibc-devel \
0015     make \
0016     which \
0017     zlib-devel \
0018     zlib-static \
0019     python3 \
0020     perl-IPC-Cmd \
0021     perl-Test-Simple
0022 
0023 # get latest CMake
0024 CMAKE_MINOR_VERSION=`echo $CMAKE_VERSION | sed -e 's/\.[^\.]*$//'`
0025 curl -Lo /tmp/cmake.sh https://cmake.org/files/v$CMAKE_MINOR_VERSION/cmake-$CMAKE_VERSION-linux-x86_64.sh
0026 bash /tmp/cmake.sh --skip-license --prefix=/usr --exclude-subdir