This is a short explanation of how to create debian source package.
Assume you want to build package-x.y.tar.gz.
1. Rename that one to package-x.y.orig.tar.gz.
2. Unlack the package.
3. Enter the unpacked package directory and create subdirectory
debian
4. Create control and rules files inside the debian directory.
5.
dpkg-source -b package-x.y package-x.y.orig.tar.gz
6. you will end up with a dsc and diff.gz files.
7. from package-x.y.orig.tar.gz, package_x.y-z.diff.gz, package_x.y-z.dsc you can build debian binary.
TODO: explain control and rules
--
MiroslavShaltev - 05 Oct 2008