libsignal-client/prepare-env.sh
2021-10-15 00:29:52 -07:00

23 lines
No EOL
596 B
Bash
Executable file

#!/bin/bash
set -exuo pipefail
apt-get update
PACKAGES="git"
case "${TARGET}" in
aarch64-unknown-linux-gnu)
apt-get install -y "${PACKAGES}" {cpp,g++,gcc}-aarch64-linux-gnu
;;
arm-unknown-linux-gnueabi)
apt-get install -y "${PACKAGES}" {cpp,g++,gcc}-arm-linux-gnueabi
;;
arm-unknown-linux-gnueabihf)
apt-get install -y "${PACKAGES}" {cpp,g++,gcc}-arm-linux-gnueabihf
;;
armv7-unknown-linux-gnueabihf)
apt-get install -y "${PACKAGES}" {cpp,g++,gcc}-arm-linux-gnueabihf
;;
*)
apt-get install -y "${PACKAGES}"
;;
esac