| 1 | #!/usr/bin/make -f |
| 2 | |
| 3 | # Excluding teatest since it causes a cyclical dependency in the package |
| 4 | # golang-github-charmbracelet-bubbletea-dev, expecting it to be in a |
| 5 | # version >= v0.26.4 |
| 6 | # Excluding colors library since it introduces a cyclical dependency on |
| 7 | # golang-github-charmbracelet-lipgloss |
| 8 | # Excluding sshkey library since it introduces a cyclical dependency on |
| 9 | # golang-github-charmbracelet-huh |
| 10 | export DH_GOLANG_EXCLUDES := examples exp/teatest colors sshkey |
| 11 | |
| 12 | %: |
| 13 | dh $@ --builddirectory=_build --buildsystem=golang |
| 14 | |
| 15 | override_dh_auto_install: |
| 16 | dh_auto_install -- --no-binaries |
| 17 | |
| 18 | SKIP="TestRender|TestWcStringWidth/flag" |
| 19 | override_dh_auto_test: |
| 20 | -dh_auto_test $(DH_BUILD_OPTS) -- -run=$(SKIP) |
| 21 | dh_auto_test $(DH_BUILD_OPTS) -- -skip=$(SKIP) |