| 1 | #!/usr/bin/make -f |
| 2 | |
| 3 | # File required in tests |
| 4 | export DH_GOLANG_INSTALL_EXTRA := starlarktest/assert.star |
| 5 | # We want to build only the library packages themselves, not the accompanying |
| 6 | # binaries. |
| 7 | export DH_GOLANG_EXCLUDES := cmd/ |
| 8 | |
| 9 | %: |
| 10 | dh $@ --buildsystem=golang --with=golang |
| 11 | |
| 12 | # Skip dh_auto_test for 32-bit systems |
| 13 | # Since FTBFS on reproducible builds |
| 14 | override_dh_auto_test: |
| 15 | ifeq (,$(filter armel armhf i386 mipsel hurd-i386 kfreebsd-i386,$(DEB_HOST_ARCH))) |
| 16 | dh_auto_test |
| 17 | endif |