#!/bin/sh -e
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr ../
make
make addons
make DESTDIR="$1" install
make DESTDIR="$1" addons install