#!/bin/sh
set -ex
wget https://github.com/erincatto/Box2D/archive/master.zip -O /tmp/box2d-master.zip
unzip /tmp/box2d-master.zip
cd Box2D-master/Box2D/Build
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DBOX2D_BUILD_SHARED=ON -DBOX2D_BUILD_EXAMPLES=OFF ..
make && sudo make install
cd ../../..

#!/bin/sh
set -ex
wget https://github.com/erincatto/Box2D/archive/v2.3.1.zip -O /tmp/box2d-master.zip
unzip /tmp/box2d-master.zip
cd Box2D-master/Box2D/Build
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DBOX2D_BUILD_SHARED=ON -DBOX2D_BUILD_EXAMPLES=OFF ..
make && sudo make install
cd ../../..

Use tagged version of Box2D instead of master (unstable)
Use tagged version of Box2D instead of master (unstable)
