| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
# Completely exclude testdata files from the binary package as they are |
| 4 |
# otherwise stripped by some debhelper plugin. This stripping step messes |
| 5 |
# up zip files' inner metadat, which in turn make the tests fail in |
| 6 |
# autopkgtest. |
| 7 |
# Configure them manually instead. |
| 8 |
export DH_GOLANG_EXCLUDES := testdata |
| 9 |
export DH_GOLANG_EXCLUDES_ALL := 1 |
| 10 |
|
| 11 |
%: |
| 12 |
dh $@ --builddirectory=_build --buildsystem=golang |
| 13 |
|
| 14 |
override_dh_auto_install: |
| 15 |
dh_auto_install -- --no-binaries |
| 16 |
|
| 17 |
execute_after_dh_auto_configure: |
| 18 |
cp -r testdata _build/src/github.com/codeclysm/extract/testdata |