From a879218a55a474345431abec11b8fcee4dec8496 Mon Sep 17 00:00:00 2001 From: Duncaen Date: Tue, 7 Apr 2020 13:13:06 +0200 Subject: [PATCH] micro: fix version information Closes #20717 --- srcpkgs/micro/template | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/srcpkgs/micro/template b/srcpkgs/micro/template index 4e8f9a6f729..53c074c703b 100644 --- a/srcpkgs/micro/template +++ b/srcpkgs/micro/template @@ -1,15 +1,13 @@ # Template file for 'micro' pkgname=micro version=2.0.2 -revision=1 -# 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 +revision=2 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)'" +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" short_desc="Modern and intuitive terminal-based text editor" maintainer="Diogo Leal "