Not to get confused, let us recapture all steps we have taken to build our binary Debian package.
Prerequisite files:
Setup temporary 'debian' directories:
debian/usr/bin' directory (or wherever you plan to place your executable files)debian/usr/share/man/man1' (or whatever section your man page belongs into)debian/DEBIAN' directorydebian/usr/share/doc/<package_name>'debian' have file permission 0755Copy files into temporary 'debian' tree:
debian/usr/bin' directory (or wherever you plan to place your executable files)debian/usr/share/man/man1' directorydebian/DEBIAN' directorydebian/usr/share/doc/<package_name>'debian' treeBuild and check binary Debian package:
dpkg-deb --build' using 'fakeroot' on the 'debian' directorydebian.deb' file to its final package name including version and architecture informationlintian'