Bump Standards-Version to 4.1.4
- Remove gen-orig-tgz (akin to get-orig-source) debian/rules target
Anthony Fok
6 years ago
9 | 9 |
Build-Depends: debhelper (>= 11),
|
10 | 10 |
dh-golang (>= 1.28),
|
11 | 11 |
golang-any
|
12 | |
Standards-Version: 4.1.3
|
|
12 |
Standards-Version: 4.1.4
|
13 | 13 |
Vcs-Browser: https://salsa.debian.org/go-team/packages/golang-check.v1
|
14 | 14 |
Vcs-Git: https://salsa.debian.org/go-team/packages/golang-check.v1.git
|
15 | 15 |
Homepage: http://labix.org/gocheck
|
0 | 0 |
#!/usr/bin/make -f
|
1 | |
|
2 | |
export DH_OPTIONS
|
3 | 1 |
|
4 | 2 |
%:
|
5 | 3 |
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
|