mirror of
https://gitlab.com/signald/libraries/libsignal-client.git
synced 2024-12-04 11:36:37 +00:00
bring back the case statement
This commit is contained in:
parent
141d57d4a6
commit
37b9f27fe5
1 changed files with 20 additions and 0 deletions
|
@ -3,3 +3,23 @@ set -exuo pipefail
|
|||
|
||||
apt-get update
|
||||
apt-get install -y git clang libclang-dev cmake make
|
||||
|
||||
|
||||
PACKAGES=("git", "clang", "libclang-dev", "cmake", "make")
|
||||
case "${TARGET}" in
|
||||
aarch64-unknown-linux-gnu|aarch64-unknown-linux-musl)
|
||||
apt-get install -y "${PACKAGES[@]}" {cpp,g++,gcc}-aarch64-linux-gnu
|
||||
;;
|
||||
arm-unknown-linux-gnueabi|arm-unknown-linux-musleabi)
|
||||
apt-get install -y "${PACKAGES[@]}" {cpp,g++,gcc}-arm-linux-gnueabi
|
||||
;;
|
||||
arm-unknown-linux-gnueabihf|arm-unknown-linux-musleabihf)
|
||||
apt-get install -y "${PACKAGES[@]}" {cpp,g++,gcc}-arm-linux-gnueabihf
|
||||
;;
|
||||
armv7-unknown-linux-gnueabihf|armv7-unknown-linux-musleabihf)
|
||||
apt-get install -y "${PACKAGES[@]}" {cpp,g++,gcc}-arm-linux-gnueabihf
|
||||
;;
|
||||
*)
|
||||
apt-get install -y "${PACKAGES[@]}"
|
||||
;;
|
||||
esac
|
||||
|
|
Loading…
Reference in a new issue