use /usr/share/dpkg/pkg-info.mk

debian
Jan Dittberner 5 years ago
parent 5652bad40e
commit dd196e0cb7

1
debian/changelog vendored

@ -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 <jandd@cacert.org> Mon, 12 Aug 2019 19:57:13 +0200

10
debian/rules vendored

@ -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)

Loading…
Cancel
Save