I will add updates to these basic processes here or on the FAQ as I learn them. Find the source code to the package you want to compile. Read all the installation and other instructions carefully. In particular, look at the Makefile and understand which executables are created and how they are linked to other executables and libraries. Also figure out exactly what parts of the compiled code, libraries, include files, data, etc. are required to run the program.
Some programs require other programs in order to run.
You will have to find that software and package it also. There are a lot of options and details that you might need to know beyond what I will describe here. Your directory names and programs may be different of course. Each package needs a name like SCprog. The SC gives some indication of the author or organization that created the program.