So it looks like upstream's intent is to run the ./build script, which sets PKGSRC=github.com/yggdrasil-network/yggdrasil-go/src/version , runs contrib/semver/name.sh to set PKGNAME (which is just checking if on the master git branch or not; if master, print "yggdrasil"), and runs contrib/semver/version.sh --bare to set PKGVER. It then sets LDFLAGS to "-X $PKGSRC.buildName=$PKGNAME -X $PKGSRC.buildVersion=$PKGVER"

So I'm guessing you can just add the following to LDFLAGS (or -ldflags):

-X github.com/yggdrasil-network/yggdrasil-go/src/version.buildName=yggdrasil -X github.com/yggdrasil-network/yggdrasil-go/src/version.buildVersion=$(shell dpkg-parsechangelog -S Version)

However, I can't for the life of me figure out how to tell dh-golang to actually pass that to the Go compiler. *shrug*

Reply via email to