The usual way to do this would be from a source tree. You would get a source tree by either downloading it or executing a command such as apt-get source some-package
.
Once the source tree is downloaded, you would follow these steps:
cd some-package*/debian
nano control
- The control file holds information for the source tree and packages generated from the source. For the source tree, there are several fields including "Build-Depends", "Maintainer", "Section". For the package, there are fields such as "Architecture", "Depends", "Suggests", and "Description".
nano changelog
- This is the version file that contains the changelog for this package. Simply modify the version number, or add your own section above it with your own version number.
debuild -us -uc
will re-build the package with the updated information
However, it's theoretically possible to do this by simply extracting the Debian package. (Note, I did not test this).
ar x SomePackage.deb
tar -xzf control.tar.gz
nano control
and edit the information
tar -czf control.tar.gz conffiles control md5sums postinst postrm preinst prerm
ar r SomePackage.deb control.tar.gz
rm control.tar.gz data.tar.gz debian-binary conffiles control md5sums postinst postrm preinst prerm