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