diff --git a/trunk/PKGBUILD b/trunk/PKGBUILD index 0458068..6261c88 100644 --- a/trunk/PKGBUILD +++ b/trunk/PKGBUILD @@ -8,15 +8,18 @@ arch=(x86_64) url='https://github.com/derailed/k9s' license=(APACHE) makedepends=(git go-pie) -source=("git+$url#commit=413605a3e7eb0f9a38029b657d3aa0b6315bba35") # 0.17.4 +_commit=413605a3e7eb0f9a38029b657d3aa0b6315bba35 # 0.17.4 +source=("git+$url#commit=$_commit") sha256sums=('SKIP') build() { cd $pkgname + local _package=github.com/derailed/$pkgname + local _date="$(git log -1 --pretty=%cI)" go build \ -gcflags "all=-trimpath=${PWD}" \ -asmflags "all=-trimpath=${PWD}" \ - -ldflags "-extldflags ${LDFLAGS}" + -ldflags "-extldflags ${LDFLAGS} -X $_package/cmd.version=$pkgver -X $_package/cmd.commit=$_commit -X $_package/cmd.date=$_date" } package() {