micro: fix version reporting with micro --version

Closes: #6805 [via git-merge-pr]
This commit is contained in:
ibrokemypie 2017-06-22 17:23:55 +10:00 committed by Toyam Cox
parent 7df296fdb2
commit f1e08273aa

View file

@ -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 <diogo@diogoleal.com>"