Compiling Debian Packages
From DWIKI
Existing packages
dpkg-add source packagename
( this will save the downloaded files in . )
dpkg-source -x packagename_x.x.dsc
cd packagename-x.x
Do your stuff with the source
Relevant files:
debian/rules
dpkg-buildpackage