bootstrap.sh 700 B

12345678910111213141516171819202122
  1. #!/bin/bash
  2. set -e
  3. if [ ! -e /swapfile ]; then
  4. fallocate -l 16G /swapfile
  5. chmod 600 /swapfile
  6. mkswap /swapfile
  7. swapon /swapfile
  8. echo "/swapfile none swap sw 0 0" >>/etc/fstab
  9. fi
  10. cp /vagrant/sources.list /etc/apt/sources.list
  11. add-apt-repository -y ppa:beineri/opt-qt55-trusty
  12. apt-get update -y
  13. apt-get upgrade -y
  14. apt-get install -y git cmake ninja-build build-essential libssl-dev libgles2-mesa-dev qt54-meta-full pkg-config autoconf libtool libfreetype6-dev libfribidi-dev libfontconfig-dev libharfbuzz-dev yasm libgnutls-dev libbz2-dev libxrandr-dev libglew-dev libsdl2-dev libcec-dev
  15. sudo -u vagrant cp /vagrant/build-deps.sh .
  16. chmod 755 build-deps.sh
  17. sudo -u vagrant ./build-deps.sh