Gphoto2 compiler and installer script. This script was initially created for Raspbian and Raspberry Pi but it is also tested for Ubuntu and Debian Jessie & Wheezy.
It seems like you have to use
cores=$(nproc)
instead of
cores = $(nproc)
on the Raspberry Pi.
I submitted an other pull request.
Sorry for the inconvenience.
changed cores = $(nproc) to cores=$(nproc)