This script automates the compilation of darktable from the master branch and generates a fully functional, lintian-compliant .deb package, including an optional debug symbols package (darktable-dbgsym).
Designed for reproducibility and compliance, it handles common packaging issues: permissions, ownership, man pages, copyright, and more β all without requiring sudo at the end.
- β
Compiles
darktablefrommasterusing CMake + Ninja - β
Generates a clean, installable
.debpackage - β
Includes debug symbols in a separate
darktable-dbgsympackage - β
Fixes file ownership and permissions using
fakeroot - β
Compresses man pages (
.1β.1.gz) - β
Uses DEP-5 format for the
copyrightfile - β
No
sudorequired at the end (builds in/tmp) - β
Outputs the
.debin the current directory - β Verbose logging for debugging
- β Compatible with non-POSIX filesystems (e.g. external drives)
Install the required tools:
sudo apt install git cmake ninja-build dpkg-dev fakeroot