File: setup-opensuse-leap.sh

package info (click to toggle)
kitinerary 25.12.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 20,428 kB
  • sloc: cpp: 214,542; javascript: 10,610; sh: 303; xml: 164; python: 48; makefile: 17
file content (44 lines) | stat: -rwxr-xr-x 1,340 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/bash
# SPDX-FileCopyrightText: 2019-2022 Volker Krause <vkrause@kde.org>
# SPDX-License-Identifier: BSD-2-Clause
set -e
set -x

GCC_VERSION=10
CMAKE_VERSION=3.25.1

# install build dependencies
zypper --non-interactive install \
    curl \
    gzip \
    tar \
    gcc$GCC_VERSION \
    gcc$GCC_VERSION-c++ \
    gettext-runtime \
    gettext-tools \
    git \
    glibc-devel-static \
    gperf \
    make \
    shared-mime-info \
    which \
    zlib-devel-static \
    python3

# gcc-$GCC_VERSION is a non-standard compiler on this platform, hide that
ln -s /usr/bin/gcc-$GCC_VERSION /usr/bin/gcc
ln -s /usr/bin/g++-$GCC_VERSION /usr/bin/g++
ln -s /usr/bin/gcc-ar-$GCC_VERSION /usr/bin/gcc-ar
ln -s /usr/bin/gcc-nm-$GCC_VERSION /usr/bin/gcc-nm
ln -s /usr/bin/gcc-ranlib-$GCC_VERSION /usr/bin/gcc-ranlib
ln -s /usr/bin/gcov-$GCC_VERSION /usr/bin/gcov
ln -s /usr/bin/gcov-dump-$GCC_VERSION /usr/bin/gcov-dump
ln -s /usr/bin/gcov-tool-$GCC_VERSION /usr/bin/gcov-tool
ln -s /usr/bin/cpp-$GCC_VERSION /usr/bin/cpp
ln -s /usr/bin/gcc /usr/bin/cc
ln -s /usr/bin/g++ /usr/bin/c++

# get latest CMake
CMAKE_MINOR_VERSION=`echo $CMAKE_VERSION | sed -e 's/\.[^\.]*$//'`
curl -Lo /tmp/cmake.sh https://cmake.org/files/v$CMAKE_MINOR_VERSION/cmake-$CMAKE_VERSION-linux-x86_64.sh
bash /tmp/cmake.sh --skip-license --prefix=/usr --exclude-subdir