#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1

# DH_GOPKG is the upstream path which you would normally “go get”.
# Using it allows us to build applications without patching locations.
export DH_GOPKG := gopkg.in/libgit2/git2go.v26
export DH_GOLANG_INSTALL_ALL := 1
export DH_GOLANG_BUILDPKG := gopkg.in/libgit2/git2go.v26

%:
	dh $@ --buildsystem=golang --with=golang

override_dh_auto_install:
	dh_auto_install
	-rm $(CURDIR)/debian/golang-git2go-dev/usr/share/gocode/src/gopkg.in/libgit2/git2go.v26/LICENSE
