1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
#!/usr/bin/make -f
export DH_GOLANG_INSTALL_EXTRA := description.json
%:
dh $@ --builddirectory=debian/_build --buildsystem=golang
execute_after_dh_auto_configure:
# golang.org/x/tools/go/vcs v0.1.0-deprecated
ln -s $(CURDIR)/debian/go/src \
debian/_build/src/github.com/Debian/dh-make-golang/vendor
# github.com/google/go-github/github (with Go modules disabled)
sed -i -e 's#go-github/v[0-9]\+/github#go-github/github#' \
debian/_build/src/github.com/Debian/dh-make-golang/main.go
override_dh_auto_install:
dh_auto_install -- --no-source
execute_before_dh_installman:
pandoc -f markdown -t man -s dh-make-golang.md -o dh-make-golang.1
|