Documentation
https://www.debian.org/doc/manuals/maint-guide/index.en.html
Make Debian package
Notes to build debian packages
debuild -b -uc -us
Second method
debuild -i -us -uc -b --lintian-opts --profile debian
Build package without clean
dpkg-buildpackage -nc
Another build without clean
fakeroot debian/rules binary
Build Alire Debian package
git clone --recursive git@salsa.debian.org:debian/alire.git alire-debian
cd alire-debian
gbp buildpackage --git-ignore-new --git-upstream-tag='upstream/1.2.1' --git-submodules
Patch management
https://raphaelhertzog.com/2012/08/08/how-to-use-quilt-to-manage-patches-in-debian-packages/
export QUILT_PATCHES=debian/patches
quilt series
quilt applied
quilt next
quilt push
Refresh a patch:
quilt push -f
quilt add alr_env.gpr
quilt refresh