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 GCC_VERSION=10 0008 CMAKE_VERSION=3.25.1 0009 0010 # install build dependencies 0011 zypper --non-interactive install \ 0012 curl \ 0013 gzip \ 0014 tar \ 0015 gcc$GCC_VERSION \ 0016 gcc$GCC_VERSION-c++ \ 0017 gettext-runtime \ 0018 gettext-tools \ 0019 git \ 0020 glibc-devel-static \ 0021 gperf \ 0022 make \ 0023 shared-mime-info \ 0024 which \ 0025 zlib-devel-static \ 0026 python3 0027 0028 # gcc-$GCC_VERSION is a non-standard compiler on this platform, hide that 0029 ln -s /usr/bin/gcc-$GCC_VERSION /usr/bin/gcc 0030 ln -s /usr/bin/g++-$GCC_VERSION /usr/bin/g++ 0031 ln -s /usr/bin/gcc-ar-$GCC_VERSION /usr/bin/gcc-ar 0032 ln -s /usr/bin/gcc-nm-$GCC_VERSION /usr/bin/gcc-nm 0033 ln -s /usr/bin/gcc-ranlib-$GCC_VERSION /usr/bin/gcc-ranlib 0034 ln -s /usr/bin/gcov-$GCC_VERSION /usr/bin/gcov 0035 ln -s /usr/bin/gcov-dump-$GCC_VERSION /usr/bin/gcov-dump 0036 ln -s /usr/bin/gcov-tool-$GCC_VERSION /usr/bin/gcov-tool 0037 ln -s /usr/bin/cpp-$GCC_VERSION /usr/bin/cpp 0038 ln -s /usr/bin/gcc /usr/bin/cc 0039 ln -s /usr/bin/g++ /usr/bin/c++ 0040 0041 # get latest CMake 0042 CMAKE_MINOR_VERSION=`echo $CMAKE_VERSION | sed -e 's/\.[^\.]*$//'` 0043 curl -Lo /tmp/cmake.sh https://cmake.org/files/v$CMAKE_MINOR_VERSION/cmake-$CMAKE_VERSION-linux-x86_64.sh 0044 bash /tmp/cmake.sh --skip-license --prefix=/usr --exclude-subdir