File indexing completed on 2024-05-05 04:42:18
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.25.1 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 gettext \ 0016 gperf \ 0017 make \ 0018 shared-mime-info \ 0019 which \ 0020 zlib-devel \ 0021 zlib-static \ 0022 python3 0023 0024 # get latest CMake 0025 CMAKE_MINOR_VERSION=`echo $CMAKE_VERSION | sed -e 's/\.[^\.]*$//'` 0026 curl -Lo /tmp/cmake.sh https://cmake.org/files/v$CMAKE_MINOR_VERSION/cmake-$CMAKE_VERSION-linux-x86_64.sh 0027 bash /tmp/cmake.sh --skip-license --prefix=/usr --exclude-subdir