Converting your C program into a package!

This is a guide for packaging and making a .deb file in Ubuntu. Suppose you’ve written some application, say a scientific calculator. It will contain files like calci.c and calci.h and some other files which perform specific functions. Now, what we will be doing is package these source files and creating a .deb file out of it.

Note: .deb is a compressed file which contains your source files. This file is unpacked when you run apt-get install <package name>

Make sure that your code works perfectly and fix the bugs in it. Lastly, add a suitable license for the source code. Avoid making any changes in the code during the process of packaging.

Now, your code is ready to be packaged!
Continue reading