micro: fix version information

Closes #20717
This commit is contained in:
Duncaen 2020-04-07 13:13:06 +02:00
parent 315b0abd5c
commit a879218a55
No known key found for this signature in database
GPG key ID: 335C1D17EC3D6E35

View file

@ -1,15 +1,13 @@
# Template file for 'micro' # Template file for 'micro'
pkgname=micro pkgname=micro
version=2.0.2 version=2.0.2
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=c51f84955e5fe924c34b4f7e06d17cd8731022cf
build_style=go build_style=go
go_import_path="github.com/zyedidia/micro" go_import_path="github.com/zyedidia/micro"
go_package="${go_import_path}/cmd/micro" go_package="${go_import_path}/cmd/micro"
go_ldflags="-X main.Version=${version} -X 'main.CommitHash=${_commithash}' -X 'main.CompileDate=$(date)'" go_ldflags="-X github.com/zyedidia/micro/internal/util.Version=${version}"
# Adding CompuileDate is bad reproducibility and adding CommitHash
# is redundant as we use a tag to build the package.
hostmakedepends="git" hostmakedepends="git"
short_desc="Modern and intuitive terminal-based text editor" short_desc="Modern and intuitive terminal-based text editor"
maintainer="Diogo Leal <diogo@diogoleal.com>" maintainer="Diogo Leal <diogo@diogoleal.com>"