#checkout source into "project"
mkdir build-armhf
mkdir build-i386
cd build-armhf
click chroot -a armhf -f ubuntu-sdk-14.10 run cmake ../project
click chroot -a armhf -f ubuntu-sdk-14.10 run make
click chroot -a armhf -f ubuntu-sdk-14.10 run make DESTDIR=/tmp/fatpackage install
cd ../build-i386
click chroot -a i386 -f ubuntu-sdk-14.10 run cmake ../project
click chroot -a i386 -f ubuntu-sdk-14.10 run make
click chroot -a i386 -f ubuntu-sdk-14.10 run make DESTDIR=/tmp/fatpackage install
vim /tmp/fatpackage/manifest.json #add all used arch to the architecture field as array e.g ["i386","armhf"]
cd /tmp
click build /tmp/fatpackage