Codebase list golang-check.v1 / 9ed5aef
Bump Standards-Version to 4.1.4 - Remove gen-orig-tgz (akin to get-orig-source) debian/rules target Anthony Fok 6 years ago
2 changed file(s) with 1 addition(s) and 15 deletion(s). Raw diff Collapse all Expand all
99 Build-Depends: debhelper (>= 11),
1010 dh-golang (>= 1.28),
1111 golang-any
12 Standards-Version: 4.1.3
12 Standards-Version: 4.1.4
1313 Vcs-Browser: https://salsa.debian.org/go-team/packages/golang-check.v1
1414 Vcs-Git: https://salsa.debian.org/go-team/packages/golang-check.v1.git
1515 Homepage: http://labix.org/gocheck
00 #!/usr/bin/make -f
1
2 export DH_OPTIONS
31
42 %:
53 dh $@ --buildsystem=golang --with=golang
6
7 DEBVERS ?= $(shell dpkg-parsechangelog | sed -n -e 's/^Version: //p')
8 VERSION ?= $(shell echo '$(DEBVERS)' | sed 's/^[[:digit:]]*://; s/[-].*//')
9 DEBPKGNAME ?= $(shell dpkg-parsechangelog | sed -n -e 's/^Source: //p')
10 GITCOMMIT ?= $(shell echo '$(VERSION)' | \
11 sed -e 's/.*+git[[:digit:]]*\.\([[:xdigit:]]*\).*/\1/')
12
13 gen-orig-tgz:
14 if [ ! -f ../$(DEBPKGNAME)_$(VERSION).orig.tar.gz ] ; then \
15 git archive --format=tar.gz --prefix=$(DEBPKGNAME)-$(VERSION)/ \
16 $(GITCOMMIT) >../$(DEBPKGNAME)_$(VERSION).orig.tar.gz ; \
17 fi