#!/usr/bin/make -f export DH_GOLANG_INSTALL_EXTRA := examples/sample-docs json/test_fixtures # Upstream's code generator for spdx/v3/v3_0/model.go and the package only # it uses; see debian/README.source. export DH_GOLANG_EXCLUDES := spdx/v3/internal/generate spdx/v3/internal/ld/shaclgen %: dh $@ --builddirectory=_build --buildsystem=golang # At compat 14 an explicit dh_auto_install call installs into debian/tmp; # point it at the only binary package. override_dh_auto_install: dh_auto_install --destdir=debian/golang-github-spdx-tools-golang-dev -- --no-binaries # Upstream ships these three files with the executable bit set. execute_after_dh_fixperms: find debian/golang-github-spdx-tools-golang-dev/usr/share/gocode -type f -perm /111 -exec chmod a-x {} +