So basically you're wondering how to build your software, then install it as a package? for compiling, you should familiarize yourself with the likes of gcc, ld, make, etc. These are the standard compilation/linking tools used by most GNU/Linux distributions.
As for compiling it into a package, you'd need to be familiar with how your distribution packages software (e.g. Debian and derived distros use the .deb format, Red Hat-like distros use the .rpm format, etc.), and the tools used for each.