mirror of
https://gitlab.com/signald/libraries/libsignal-client.git
synced 2024-12-04 19:46:37 +00:00
26 lines
1,003 B
Bash
Executable file
26 lines
1,003 B
Bash
Executable file
#!/bin/bash
|
|
set -exuo pipefail
|
|
|
|
apt-get update
|
|
|
|
PACKAGES=("git" "clang-13" "libclang-dev" "lld-13" "cmake" "make")
|
|
case "${TARGET}" in
|
|
aarch64-unknown-linux-gnu|aarch64-unknown-linux-musl)
|
|
apt-get install -yqq "${PACKAGES[@]}" crossbuild-essential-arm64 gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
|
|
;;
|
|
arm-unknown-linux-gnueabi|arm-unknown-linux-musleabi)
|
|
apt-get install -yqq "${PACKAGES[@]}" {cpp,g++,gcc}-arm-linux-gnueabi linux-libc-dev-armel-cross
|
|
;;
|
|
arm-unknown-linux-gnueabihf|arm-unknown-linux-musleabihf)
|
|
apt-get install -yqq "${PACKAGES[@]}" {cpp,g++,gcc}-arm-linux-gnueabihf linux-libc-dev-armhf-cross
|
|
;;
|
|
armv7-unknown-linux-gnueabihf|armv7-unknown-linux-musleabihf)
|
|
apt-get install -yqq "${PACKAGES[@]}" {cpp,g++,gcc}-arm-linux-gnueabihf linux-libc-dev-armel-cross
|
|
;;
|
|
x86_64-unknown-linux-musl)
|
|
apt-get install -yqq "${PACKAGES[@]}" musl-tools
|
|
;;
|
|
*)
|
|
apt-get install -yqq "${PACKAGES[@]}"
|
|
;;
|
|
esac
|