Adding code to install from source, taken from hectcastro