File indexing completed on 2024-05-12 05:17:33

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