An Easy to Use Boilerplate 'debuild' Project

29 Jun 2015 linux

“dpkg-deb-boilerplate” is an easy to use boilerplate debuild project for building debian package using Lanuchpad or other services.

Why do I need it? Isn’t dpkg --build dirname enough?

dpkg --build dirname is good, but debian packaging policy provides a solid build system to easily install application binaries, libraries, service scripts, launchers, manuals etc. Also for automated build systems like ubuntu launchpad or opensuse build service you need to provide a source archive, not prebuild binaries. This boilerplate might come handy in such circumstance.

What do I need to make it working?

Install build-essentials which will automatically install make, gcc, g++, dpkg-dev etc. packages.

How do I make it working?

So, how does it work actually?

Basically the boilerplate does

  1. Compile and build a demo library and executable from source, and install them to build directory.
  2. Debian packaging system takes the files from build directory, and packs them into deb file.

Umm, can you be more specific?

Can I add my own init.d script, launcher icon, manual pages etc?

Yup, you surely can. Check out Debian Policy Manual and you are good to go.

Browse the project dpkg-deb-boilerplate