Files
docker/linux_cross/install_apt.sh
T
2026-08-19 21:30:27 +03:00

124 lines
2.6 KiB
Bash

#!/bin/bash
arch=$1
toolchain=$2
export DEBIAN_FRONTEND=noninteractive
find "/etc/apt/sources.list.d/" -type f -exec sed -i "s|http://[a-zA-Z0-9_.]\+/|http://mirror.truenetwork.ru/|g" {} \;
dpkg --add-architecture $arch
apt-get update
# locales
apt-get install -y locales apt-utils
localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
TZ=Europe/Moscow
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime
echo $TZ > /etc/timezone
# base soft
apt-get install -y \
bison \
ccache \
cpio \
curl \
debconf \
debhelper \
doxygen \
dpkg \
flex \
g++ \
git \
gperf \
graphviz \
htop \
iputils-ping \
lsb-release \
mc \
md5deep \
nano \
net-tools \
ninja-build \
p7zip-full \
patchelf \
python3 \
screen \
subversion \
unzip \
wget \
zip
apt-get install -y \
qtbase5-dev-tools \
qttools5-dev-tools
apt-get install -y \
$toolchain \
libbz2-dev:$arch \
libffi-dev:$arch \
libfontconfig1-dev:$arch \
libfreetype6-dev:$arch \
libfftw3-dev:$arch \
libgl1-mesa-dev:$arch \
libglew-dev:$arch \
libglu1-mesa-dev:$arch \
libgmp-dev:$arch \
libicu-dev:$arch \
liblzma-dev:$arch \
libmpc-dev:$arch \
libmpfr-dev:$arch \
libncurses-dev:$arch \
libpq-dev:$arch \
libreadline-dev:$arch \
libssl-dev:$arch \
libwayland-dev:$arch \
libx11-dev:$arch \
libx11-xcb-dev:$arch \
libxkbcommon-dev:$arch \
libxkbcommon-x11-dev:$arch \
libxml2-dev:$arch \
libxrender-dev:$arch \
ocl-icd-opencl-dev:$arch \
libsodium-dev:$arch \
libassimp-dev:$arch \
libmicrohttpd-dev:$arch \
libhdf5-dev:$arch \
libcurl4-openssl-dev:$arch \
qtconnectivity5-dev:$arch \
qtbase5-dev:$arch \
qttools5-dev:$arch \
qtscript5-dev:$arch \
qtdeclarative5-dev:$arch \
qtpositioning5-dev:$arch \
libqt5datavisualization5-dev:$arch \
libqt5networkauth5-dev:$arch \
libqt5opengl5-dev:$arch \
qtscript5-dev:$arch \
libqt5serialport5-dev:$arch \
libqt5serialbus5-dev:$arch \
libqt5sensors5-dev:$arch \
libqt5svg5-dev:$arch \
libqt5websockets5-dev:$arch \
libqt5x11extras5-dev:$arch \
libqt5xmlpatterns5-dev:$arch \
libqt5charts5-dev:$arch
apt-get install -y qtbase5-private-dev:$arch qttools5-private-dev:$arch || true
apt-get install -y qtmultimedia5-dev:$arch || true
apt-get install -y libusb-1.0-0-dev:$arch || true
apt-get install -y lzma-dev || true
apt-get install -y python3-future || true
apt-get install -y python3-click || true
apt-get install -y python3-cryptography || true
apt-get install -y python3-pip || true
apt-get install -y python3-pyelftools || true
apt-get install -y python3-pyparsing || true
apt-get install -y python3-serial || true
apt-get install -y python3-setuptools || true
apt-get install -y libopencv-dev:$arch || true
# cleanup
rm -rf /var/cache/apt/archives/*