apt install build-essential cmake ninja-build python3 gcc-5 g++-5
make create-orig-tgz
- dpkg-buildpackage -uc -us
+ dpkg-buildpackage -b -uc
Note that gcc-5 may not be available in newer distributions such as
Debian Stretch. It is possible to compile it from source. For example