libsignal-client/prepare-env.sh

26 lines
962 B
Bash
Raw Normal View History

2021-10-15 07:29:52 +00:00
#!/bin/bash
set -exuo pipefail
apt-get update
2022-11-30 03:55:28 +00:00
2022-12-14 02:05:40 +00:00
PACKAGES=( "git" "clang" "libclang-dev" "cmake" "make" )
2022-11-30 03:55:28 +00:00
case "${TARGET}" in
aarch64-unknown-linux-gnu|aarch64-unknown-linux-musl)
2022-12-14 01:51:56 +00:00
apt-get install -y "${PACKAGES[@]}" {cpp,g++,gcc}-aarch64-linux-gnu linux-libc-dev-arm64-cross
2022-11-30 03:55:28 +00:00
;;
arm-unknown-linux-gnueabi|arm-unknown-linux-musleabi)
2022-12-14 01:51:56 +00:00
apt-get install -y "${PACKAGES[@]}" {cpp,g++,gcc}-arm-linux-gnueabi linux-libc-dev-armel-cross
2022-11-30 03:55:28 +00:00
;;
arm-unknown-linux-gnueabihf|arm-unknown-linux-musleabihf)
2022-12-14 01:51:56 +00:00
apt-get install -y "${PACKAGES[@]}" {cpp,g++,gcc}-arm-linux-gnueabihf linux-libc-dev-armhf-cross
2022-11-30 03:55:28 +00:00
;;
armv7-unknown-linux-gnueabihf|armv7-unknown-linux-musleabihf)
2022-12-14 01:51:56 +00:00
apt-get install -y "${PACKAGES[@]}" {cpp,g++,gcc}-arm-linux-gnueabihf linux-libc-dev-armel-cross
2022-11-30 03:55:28 +00:00
;;
2022-12-14 01:51:56 +00:00
x86_64-unknown-linux-musl)
apt-get install -y "${PACKAGES[@]}" musl-tools
2022-11-30 03:55:28 +00:00
*)
apt-get install -y "${PACKAGES[@]}"
;;
esac