From f1e08273aa06aac984e3a5a2e33475211524bb33 Mon Sep 17 00:00:00 2001 From: ibrokemypie Date: Thu, 22 Jun 2017 17:23:55 +1000 Subject: [PATCH] micro: fix version reporting with micro --version Closes: #6805 [via git-merge-pr] --- srcpkgs/micro/template | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/srcpkgs/micro/template b/srcpkgs/micro/template index b2ad5185592..aa242e1feb1 100644 --- a/srcpkgs/micro/template +++ b/srcpkgs/micro/template @@ -1,10 +1,15 @@ # Template file for 'micro' pkgname=micro version=1.2.0 -revision=1 +revision=2 +# This will need to be updated along with version as it cannot currently be +# obtained from the tarball, and is necessary if the user is to make error +# reports upsteam. +_commithash=be8124154b2b3e761578a186c42a18ace5a43865 build_style=go go_import_path="github.com/zyedidia/micro" go_package="${go_import_path}/cmd/micro" +go_ldflags="-X main.Version=${version} -X 'main.CommitHash=${_commithash}' -X 'main.CompileDate=$(date)'" hostmakedepends="git" short_desc="A modern and intuitive terminal-based text editor" maintainer="Diogo Leal "