2018-08-13 11:14:15 -04:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
|
|
|
brew update
|
2018-08-13 14:24:40 -04:00
|
|
|
brew install jq zip
|
2018-08-13 11:14:15 -04:00
|
|
|
else
|
2018-08-31 10:53:36 -04:00
|
|
|
sudo apt-get update
|
2019-02-14 19:40:11 -05:00
|
|
|
sudo apt-get install -y fakeroot rpm jq
|
2019-07-04 17:03:18 -04:00
|
|
|
if [[ $BUILDARCH == "arm64" ]]; then
|
2018-11-05 10:32:51 -05:00
|
|
|
echo "deb http://ports.ubuntu.com/ubuntu-ports/ trusty main" | sudo tee -a /etc/apt/sources.list.d/arm64.list >/dev/null
|
2018-11-04 16:05:53 -05:00
|
|
|
sudo dpkg --add-architecture arm64
|
|
|
|
sudo apt-get update
|
2018-11-04 16:26:54 -05:00
|
|
|
sudo apt-get install libc6-dev-arm64-cross gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
|
2018-11-04 16:05:53 -05:00
|
|
|
sudo apt-get install libx11-dev:arm64 libxkbfile-dev:arm64
|
|
|
|
export CC=/usr/bin/aarch64-linux-gnu-gcc
|
|
|
|
export CXX=/usr/bin/aarch64-linux-gnu-g++
|
|
|
|
export CC_host=/usr/bin/gcc
|
|
|
|
export CXX_host=/usr/bin/g++
|
2019-02-14 19:40:11 -05:00
|
|
|
else
|
|
|
|
sudo apt-get install libx11-dev libxkbfile-dev libsecret-1-dev fakeroot rpm jq
|
2018-10-04 18:05:05 -04:00
|
|
|
fi
|
2018-10-10 11:20:56 -04:00
|
|
|
fi
|