-b, --build directory [archive|directory] Creates a debian archive fromthe filesystem tree stored indirectory. directory must have a DEBIAN subdirectory, which containsthe control information files such asthe control file itself. This directory will not appear inthe binary package's filesystem archive, but instead the files in it will be put in the binary package's control information area.
Unless you specify --nocheck, dpkg-deb will read DEBIAN/control and parse it. It will check it for syntax errors and other problems, and display the name ofthe binary package being built. dpkg-deb will also check the permissions ofthe maintainer scripts and other files found inthe DEBIAN control information directory.
If no archive is specified then dpkg-deb will writethe package intothefiledirectory.deb.
If the archive to be created already exists it will be overwritten.
If thesecond argument is adirectorythen dpkg-deb will writetothefile package_version_arch.deb, or package_ver‐ sion.deb if no Architecture field is present inthe package control file. When a target directory is specified, rather than afile, the--nocheck option may not be used (since dpkg-deb needs to read and parse the package control file to determine which filename to use).