foxgirl-linux/binary_tarball/scripts/1_Install_Dependencies.sh

62 lines
1.6 KiB
Bash
Raw Normal View History

2020-03-07 19:44:22 +01:00
#!/bin/bash
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
# _DEPENDENCIES="mercurial wget git flatpak flatpak-builder";
_DEPENDENCIES="wget git xvfb \
xz-utils \
curl python3 libjack-dev \
autotools-dev \
autoconf2.13 \
zip \
libx11-dev \
libx11-xcb-dev \
libxt-dev \
libxext-dev \
libgtk2.0-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 \
hardening-wrapper \
lsb-release \
libiw-dev \
mesa-common-dev \
libnotify-dev \
libxrender-dev \
libpulse-dev \
yasm \
unzip \
dbus-x11 \
python \
cargo \
rustc \
nodejs-mozilla \
nasm-mozilla \
gcc-mozilla"
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
apt-add-repository "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-9 main"
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add
apt-get update
apt-get -y install clang-9 libclang-9-dev
else
apt-get -y install clang-8 libclang-8-dev
fi