2020-03-07 19:44:22 +01:00
|
|
|
#!/bin/bash
|
2019-07-17 20:50:38 +02:00
|
|
|
printf "\n\n-------------------------------------- DEPENDENCY INSTALLATION ---------------------------------------------\n";
|
|
|
|
|
2020-03-29 01:10:49 +01:00
|
|
|
set -e
|
|
|
|
|
2019-07-21 07:30:19 +02:00
|
|
|
# Setup Script Variables
|
2020-03-29 18:37:23 +02:00
|
|
|
_DEPENDENCIES="wget git xvfb \
|
|
|
|
xz-utils \
|
2020-03-31 10:57:25 +02:00
|
|
|
gettext-base \
|
2020-03-29 18:37:23 +02:00
|
|
|
curl python3 libjack-dev \
|
2020-03-31 12:34:55 +02:00
|
|
|
python3-psutil python-psutil python3-dev python-dev \
|
2020-03-29 18:37:23 +02:00
|
|
|
autotools-dev \
|
|
|
|
autoconf2.13 \
|
|
|
|
zip \
|
|
|
|
libx11-dev \
|
|
|
|
libx11-xcb-dev \
|
|
|
|
libxt-dev \
|
|
|
|
libxext-dev \
|
|
|
|
libgtk-3-dev \
|
|
|
|
libglib2.0-dev \
|
|
|
|
libpango1.0-dev \
|
|
|
|
libfontconfig1-dev \
|
|
|
|
libfreetype6-dev \
|
|
|
|
libstartup-notification0-dev \
|
|
|
|
libasound2-dev \
|
|
|
|
libcurl4-openssl-dev \
|
|
|
|
libdbus-glib-1-dev \
|
|
|
|
lsb-release \
|
|
|
|
libiw-dev \
|
|
|
|
mesa-common-dev \
|
|
|
|
libnotify-dev \
|
|
|
|
libxrender-dev \
|
|
|
|
libpulse-dev \
|
2021-02-27 00:02:29 +01:00
|
|
|
libssl-dev \
|
2020-03-29 18:37:23 +02:00
|
|
|
yasm \
|
|
|
|
unzip \
|
|
|
|
dbus-x11 \
|
|
|
|
python \
|
2021-04-21 10:52:21 +02:00
|
|
|
libffi-dev \
|
2020-03-29 18:37:23 +02:00
|
|
|
nodejs-mozilla \
|
2021-08-19 22:22:59 +02:00
|
|
|
cargo \
|
|
|
|
rustc \
|
2021-04-21 10:52:21 +02:00
|
|
|
nasm-mozilla"
|
2020-03-29 18:37:23 +02:00
|
|
|
|
2021-02-01 16:04:20 +01:00
|
|
|
# cargo \
|
|
|
|
# rustc \
|
|
|
|
|
2020-03-29 14:42:06 +02:00
|
|
|
export DEBIAN_FRONTEND=noninteractive
|
2019-07-21 07:30:19 +02:00
|
|
|
|
|
|
|
# Installs Dependencies
|
2019-08-17 05:34:30 +02:00
|
|
|
printf "\nInstalling dependencies: $_DEPENDENCIES\n";
|
2020-03-29 14:42:06 +02:00
|
|
|
apt-get -qq update;
|
|
|
|
apt-get -y -qq install $_DEPENDENCIES;
|
2020-03-29 00:53:59 +01:00
|
|
|
|
2020-03-31 09:53:45 +02:00
|
|
|
if [[ $CARCH == 'x86_64' ]];then
|
|
|
|
# Installs (non-ancient) clang
|
|
|
|
apt install -y software-properties-common apt-transport-https ca-certificates
|
|
|
|
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add
|
2021-06-17 13:35:43 +02:00
|
|
|
apt-add-repository "deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-12 main"
|
2020-03-31 09:53:45 +02:00
|
|
|
apt-get update
|
2021-06-17 13:35:43 +02:00
|
|
|
apt-get -y install clang-12 libclang-12-dev
|
2020-03-31 09:53:45 +02:00
|
|
|
else
|
2021-04-21 10:52:21 +02:00
|
|
|
apt install -y software-properties-common apt-transport-https ca-certificates
|
|
|
|
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add
|
2021-06-17 13:35:43 +02:00
|
|
|
apt-add-repository "deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-10 main"
|
2021-04-21 10:52:21 +02:00
|
|
|
apt-get update
|
|
|
|
apt-get -y install clang-10 libclang-10-dev
|
2020-03-31 09:53:45 +02:00
|
|
|
fi
|
2021-02-01 15:46:15 +01:00
|
|
|
|
2021-08-11 12:02:40 +02:00
|
|
|
# we need a more recent rust
|
2021-08-19 22:22:59 +02:00
|
|
|
# curl https://sh.rustup.rs -o rustup.sh
|
|
|
|
# bash rustup.sh -y
|
|
|
|
# source /root/.cargo/env
|