Sunday, June 21, 2009

Creating own Deb Package

first step is to install all the nessesary stuff

sudo apt-get install autotools-dev fakeroot dh-make build-essential


then copy your sourcetree into the tmp or whatever folder

cp -r my-program-source /tmp


now go to that folder

cd /tmp/my-program-source


now lets make debian control files

dh_make

or

dh_make --createorig

take the single binary, unless u need something else.


finaly lets compile and build it

dpkg-buildpackage -rfakeroot


after this check your /tmp  folder, there should be  the package with ending i386.deb


No comments:

Post a Comment