2018-08-13 18:14:15 +03:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
|
|
|
brew update
|
2018-08-13 21:24:40 +03:00
|
|
|
brew install jq zip
|
2018-08-13 18:14:15 +03:00
|
|
|
else
|
2018-08-31 17:53:36 +03:00
|
|
|
sudo apt-get update
|
2019-02-15 03:40:11 +03:00
|
|
|
sudo apt-get install -y fakeroot rpm jq
|
2018-10-05 01:05:05 +03:00
|
|
|
if [[ "$BUILDARCH" == "ia32" ]]; then
|
|
|
|
sudo dpkg --add-architecture i386
|
|
|
|
sudo apt-get update
|
2019-02-15 03:40:11 +03:00
|
|
|
sudo apt-get install -y gcc-multilib g++-multilib
|
|
|
|
sudo apt-get install -y \
|
|
|
|
libgirepository-1.0-1:i386 \
|
|
|
|
gir1.2-glib-2.0:i386 \
|
|
|
|
libglib2.0-dev:i386 \
|
|
|
|
gir1.2-secret-1:i386 \
|
|
|
|
libx11-dev:i386 \
|
|
|
|
libxkbfile-dev:i386 \
|
|
|
|
libsecret-1-dev:i386
|
|
|
|
export CFLAGS=-m32
|
|
|
|
export CXXFLAGS=-m32
|
|
|
|
export PKG_CONFIG_PATH=/usr/lib/i386-linux-gnu/pkgconfig
|
2018-10-10 18:20:56 +03:00
|
|
|
elif [[ $BUILDARCH == "arm64" ]]; then
|
2018-11-05 18:32:51 +03: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-05 00:05:53 +03:00
|
|
|
sudo dpkg --add-architecture arm64
|
|
|
|
sudo apt-get update
|
2018-11-05 00:26:54 +03:00
|
|
|
sudo apt-get install libc6-dev-arm64-cross gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
|
2018-11-05 00:05:53 +03: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-15 03:40:11 +03:00
|
|
|
else
|
|
|
|
sudo apt-get install libx11-dev libxkbfile-dev libsecret-1-dev fakeroot rpm jq
|
2018-10-05 01:05:05 +03:00
|
|
|
fi
|
2018-10-10 18:20:56 +03:00
|
|
|
fi
|