From dd196e0cb74385e1c10098f9deb7d2efce067dbb Mon Sep 17 00:00:00 2001 From: Jan Dittberner Date: Tue, 13 Aug 2019 12:49:25 +0200 Subject: [PATCH] use /usr/share/dpkg/pkg-info.mk --- debian/changelog | 1 + debian/rules | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/debian/changelog b/debian/changelog index af6cf08..ee8a596 100644 --- a/debian/changelog +++ b/debian/changelog @@ -3,6 +3,7 @@ cacert-boardvoting (0.6.0-2) UNRELEASED; urgency=medium * Add missing license reference * update for Debian buster * update to debhelper 12 + * use /usr/share/dpkg/pkg-info.mk -- Jan Dittberner Mon, 12 Aug 2019 19:57:13 +0200 diff --git a/debian/rules b/debian/rules index 4351fc6..ee4ee9e 100755 --- a/debian/rules +++ b/debian/rules @@ -1,16 +1,16 @@ #!/usr/bin/make -f -%: - dh $@ - DEB_BUILD_MAINT_OPTIONS = hardening=+all +DEB_BUILD_OPTIONS = nostrip DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/buildflags.mk +include /usr/share/dpkg/pkg-info.mk -DEB_VERSION=$(shell dpkg-parsechangelog -S Version) +%: + dh $@ override_dh_auto_build: GOCACHE=$(CURDIR)/tmp/.cache \ GOPATH=$(CURDIR)/tmp/gocode \ go get -u -v github.com/shulhan/go-bindata/cmd/go-bindata ; \ - PATH=$(CURDIR)/tmp/gocode/bin:$(PATH) make GOCACHE=$(CURDIR)/tmp/.cache GOPATH=$(CURDIR)/tmp/gocode VERSION=$(DEB_VERSION) + PATH=$(CURDIR)/tmp/gocode/bin:$(PATH) $(MAKE) GOCACHE=$(CURDIR)/tmp/.cache GOPATH=$(CURDIR)/tmp/gocode VERSION=$(DEB_VERSION)