Advertisement
Guest User

Vagrant to build Noggit from source

a guest
May 28th, 2016
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 1.46 KB | None | 0 0
  1. # -*- mode: ruby -*-
  2. # vi: set ft=ruby :
  3.  
  4. # All Vagrant configuration is done below. The "2" in Vagrant.configure
  5. # configures the configuration version (we support older styles for
  6. # backwards compatibility). Please don't change it unless you know what
  7. # you're doing.
  8. Vagrant.configure(2) do |config|
  9.   # The most common configuration options are documented and commented below.
  10.   # For a complete reference, please see the online documentation at
  11.   # https://docs.vagrantup.com.
  12.  
  13.   # Every Vagrant development environment requires a box. You can search for
  14.   # boxes at https://atlas.hashicorp.com/search.
  15.   config.vm.box = "ubuntu/xenial64"
  16.  
  17.   # Enable provisioning with a shell script. Additional provisioners such as
  18.   # Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
  19.   # documentation for more information about their specific syntax and use.
  20.   config.vm.provision "shell", inline: <<-SHELL
  21.     sudo apt-get update
  22.     sudo apt install -y mercurial git build-essential cmake
  23.     mkdir -p ~/projects/WoW/noggit
  24.     cd ~/projects/WoW/noggit
  25.     hg clone https://bitbucket.org/berndloerwald/noggit3
  26.     cd noggit3
  27.     git clone https://github.com/ladislav-zezula/StormLib
  28.     sudo apt install -y libboost-thread-dev libboost-filesystem-dev libboost-system-dev libbz2-dev libsdl1.2-dev libfreetype6-dev libglew-dev libglewmx-dev
  29.     cd StormLib
  30.     cmake .
  31.     make
  32.     sudo make install
  33.     cd ..
  34.     cmake .
  35.     make
  36.   SHELL
  37. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement