| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
include /usr/share/dpkg/pkg-info.mk # DEB_VERSION |
| 4 |
|
| 5 |
export DH_GOLANG_INSTALL_EXTRA := test |
| 6 |
|
| 7 |
%: |
| 8 |
dh $@ --buildsystem=golang |
| 9 |
|
| 10 |
# fixes autopkgtest. The foo.tar.gz must not be altered because the |
| 11 |
# tests compare expected checksums in generated jwt tokens |
| 12 |
override_dh_strip_nondeterminism: |
| 13 |
dh_strip_nondeterminism -Xfoo.tar.gz |
| 14 |
|
| 15 |
SKIP="TestRecordArtifactWithBlobs/test_binary_blob_with_windows-like_line_breaks_as_byte_segments" |
| 16 |
override_dh_auto_test: |
| 17 |
-dh_auto_test $(DH_BUILD_OPTS) -- -run $(SKIP) |
| 18 |
dh_auto_test $(DH_BUILD_OPTS) -- -skip $(SKIP) |
| 19 |
|
| 20 |
B = $(CURDIR)/debian/tmp/usr/bin |
| 21 |
M = $(CURDIR)/debian/tmp/usr/share/man/man1 |
| 22 |
|
| 23 |
ifeq (,$(filter nodoc,$(DEB_BUILD_PROFILES))) |
| 24 |
execute_before_dh_installman-arch: |
| 25 |
mkdir -pv $(M) |
| 26 |
help2man --version-string="$(DEB_VERSION)" \ |
| 27 |
--no-info \ |
| 28 |
--name="secure the integrity of software supply chains" \ |
| 29 |
--output $(M)/in-toto-golang.1 \ |
| 30 |
$(B)/in-toto-golang |
| 31 |
endif |