Changeset View
Changeset View
Standalone View
Standalone View
contrib/utils/install-dependencies.sh
Show First 20 Lines • Show All 53 Lines • ▼ Show 20 Lines | PACKAGES=( | ||||
libssl-dev | libssl-dev | ||||
libtiff-tools | libtiff-tools | ||||
libtinfo5 | libtinfo5 | ||||
libtool | libtool | ||||
libzmq3-dev | libzmq3-dev | ||||
lld | lld | ||||
make | make | ||||
ninja-build | ninja-build | ||||
npm | |||||
nsis | nsis | ||||
php-codesniffer | php-codesniffer | ||||
pkg-config | pkg-config | ||||
protobuf-compiler | protobuf-compiler | ||||
python3 | python3 | ||||
python3-autopep8 | python3-autopep8 | ||||
python3-pip | python3-pip | ||||
python3-setuptools | python3-setuptools | ||||
Show All 16 Lines | function join_by() { | ||||
echo "$*" | echo "$*" | ||||
} | } | ||||
apt-get update | apt-get update | ||||
DEBIAN_FRONTEND=noninteractive apt-get install -y $(join_by ' ' "${PACKAGES[@]}") | DEBIAN_FRONTEND=noninteractive apt-get install -y $(join_by ' ' "${PACKAGES[@]}") | ||||
BACKPORTS=( | BACKPORTS=( | ||||
cmake | cmake | ||||
npm | |||||
shellcheck | shellcheck | ||||
) | ) | ||||
echo "deb http://deb.debian.org/debian buster-backports main" | tee -a /etc/apt/sources.list | echo "deb http://deb.debian.org/debian buster-backports main" | tee -a /etc/apt/sources.list | ||||
apt-get update | apt-get update | ||||
DEBIAN_FRONTEND=noninteractive apt-get -t buster-backports install -y $(join_by ' ' "${BACKPORTS[@]}") | DEBIAN_FRONTEND=noninteractive apt-get -t buster-backports install -y $(join_by ' ' "${BACKPORTS[@]}") | ||||
Show All 20 Lines | |||||
# For running Python test suites | # For running Python test suites | ||||
pip3 install pytest | pip3 install pytest | ||||
# Install pandoc. The version from buster is outdated, so get a more recent one | # Install pandoc. The version from buster is outdated, so get a more recent one | ||||
# from github. | # from github. | ||||
wget https://github.com/jgm/pandoc/releases/download/2.10.1/pandoc-2.10.1-1-amd64.deb | wget https://github.com/jgm/pandoc/releases/download/2.10.1/pandoc-2.10.1-1-amd64.deb | ||||
echo "4515d6fe2bf8b82765d8dfa1e1b63ccb0ff3332d60389f948672eaa37932e936 pandoc-2.10.1-1-amd64.deb" | sha256sum -c | echo "4515d6fe2bf8b82765d8dfa1e1b63ccb0ff3332d60389f948672eaa37932e936 pandoc-2.10.1-1-amd64.deb" | sha256sum -c | ||||
DEBIAN_FRONTEND=noninteractive dpkg -i pandoc-2.10.1-1-amd64.deb | DEBIAN_FRONTEND=noninteractive dpkg -i pandoc-2.10.1-1-amd64.deb | ||||
# Install npm v7.x and nodejs v15.x | |||||
curl -sL https://deb.nodesource.com/setup_15.x | bash - | |||||
apt-get install -y nodejs |