28 December, 2009

How to build .deb package from source

Instructions for building a .deb file from source files. Most errors you get while compiling is that you might have to install some packages from aptitude.

Copy files to temp:

cp -r '/dir/of/the/source/files' /tmp

Go to the copied files:

cd /tmp/source-dir-name

While doing dh_make press "s" for the first question and "enter" for the second one:

dh_make --createorig

Build the package:

dpkg-buildpackage -rfakeroot

.deb file should appear into your /tmp directory if building was successful.

No comments:

Post a Comment