I just needed to repack a Debian package to solve this problem. After a quick spin to #debian I got this solution:
$ mkdir -p extract/DEBIAN
$ dpkg-deb -x package.deb extract/
$ dpkg-deb -e package.deb extract/DEBIAN
[...do something, e.g. edit the control file...]
$ mkdir build
$ dpkg-deb -b extract/ build/
- -x extracts the package contents
- -e extracts the control files
- -b builds the new package
Done.
Pingback: Some thoughts about dependencies in packages - Tenzer.dk()
Pingback: Repack a .DEB archive | 0ddn1x: tricks with *nix()
Pingback: Correcting obsolete dependency requirements in DEB packages | Rohit Bhute()