Skip to content

TBD

TBD

Debian package

dpkg-deb

Basic tool to create debian package

dpkg-buildpackage

Debian has some pretty detailed rules on what a "proper" Debian package looks like, dpkg-buildpackage is a tool that enforces said workflow and structure, it's use dpkg-deb to create debian package (deb file)

Version

The "Version" field is gone. As explained above, dpkg-buildpackage infers the version number from the changelog file.

Debhelper

Debhelper is a tool that automates various common aspects of package building

command/method

dh_auto_configure

automatically run ./configure or the cmake equivalent.
- Applies architecture-specific flags.( CFLAGS, CXXFLAGS, LDFLAGS) |

dh_builddeb

dh_builddeb is a Debhelper tool that creates a Debian (.deb) package from the files staged in debian/tmp or debian//

option desc
--destdir=<dir> Change the output directory for .deb files.
override_dh_builddeb:
    dh_builddeb --destdir=output_folder

Resource