From 1308c2f77480ad8aa214056707cf830cad0db675 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Delafond?= Date: Fri, 21 Aug 2020 10:11:45 +0200 Subject: [PATCH] Pass version from d/rules (Closes: #968585) --- debian/rules | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/debian/rules b/debian/rules index 772bac65..9fe53910 100755 --- a/debian/rules +++ b/debian/rules @@ -4,11 +4,16 @@ # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 +include /usr/share/dpkg/pkg-info.mk + override_dh_auto_test: # tests are failing for now and the pacakge vendors many libraries override_dh_auto_install: dh_auto_install -- --no-source +override_dh_auto_build: + dh_auto_build -- -ldflags "-X main.Version=$(DEB_VERSION)" + %: dh $@ --buildsystem=golang --with=golang,bash-completion