I am learning how to create deb packages for a small project of mine. I have been able to create the deb package for the binary. So far so good. After the process is finished I can see this:
$ dpkg -c gitmod_0.10-1_amd64.deb
drwxr-xr-x root/root 0 2024-06-01 13:57 ./
drwxr-xr-x root/root 0 2024-06-01 13:57 ./usr/
drwxr-xr-x root/root 0 2024-06-01 13:57 ./usr/bin/
-rwxr-xr-x root/root 31400 2024-06-01 13:57 ./usr/bin/gitmod
drwxr-xr-x root/root 0 2024-06-01 13:57 ./usr/share/
drwxr-xr-x root/root 0 2024-06-01 13:57 ./usr/share/doc/
drwxr-xr-x root/root 0 2024-06-01 13:57 ./usr/share/doc/gitmod/
-rw-r--r-- root/root 154 2024-06-01 13:57 ./usr/share/doc/gitmod/changelog.Debian.gz
-rw-r--r-- root/root 45 2024-06-01 13:57 ./usr/share/doc/gitmod/copyright
I want to be able to generate the package for different releases of debian (or even other distros) so I'd like to be able to have packages like:
gitmod_0.10-1_bullseye_amd64.deb
gitmod_0.10-1_bookworm_amd64.deb
So I need to be able to provide a suffix in a parameterized fashion (even if I need to use template files to generate the files used by debuild
to generate the package).
Is it possible to achieve this in a standard fashion?