mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 04:16:46 +02:00
testing/micro: fix version number in the binary
Recent versions of micro changed where they look for version info. Update our build to match the new location.
This commit is contained in:
parent
7b75f9ab7d
commit
e88471f7e6
@ -2,7 +2,7 @@
|
||||
# Maintainer:
|
||||
pkgname=micro
|
||||
pkgver=2.0.2
|
||||
pkgrel=0
|
||||
pkgrel=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.
|
||||
@ -25,8 +25,12 @@ prepare() {
|
||||
|
||||
build() {
|
||||
export GOPATH="$srcdir"
|
||||
go get -v -ldflags \
|
||||
"-s -w -X main.Version=$pkgver -X main.CommitHash=$_commithash" \
|
||||
go get -v -ldflags "
|
||||
-s -w
|
||||
-X github.com/zyedidia/micro/internal/util.Version=$pkgver-alpine$pkgrel
|
||||
-X github.com/zyedidia/micro/internal/util.CommitHash=$_commithash
|
||||
-X github.com/zyedidia/micro/internal/util.CompileDate=$SOURCE_DATE_EPOCH
|
||||
" \
|
||||
./cmd/micro
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user