On 2023-02-03 11 h 58, FC Stegerman wrote:
Presumably there is a way to get the version from e.g. "dpkg-parsechangelog -S Version" (minus the -1 revision) instead. I'm not sure how other packages handle this.
You can get those values via the variables provided by /usr/share/dpkg/pkg-info.mk
You can "source" those in your d/rules makefile by using: include /usr/share/dpkg/pkg-info.mk -- ⢀⣴⠾⠻⢶⣦⠀ ⣾⠁⢠⠒⠀⣿⡁ Louis-Philippe Véronneau ⢿⡄⠘⠷⠚⠋ pollo@debian.org / veronneau.org ⠈⠳⣄