upgpkg: golangci-lint 1.16.0-2

Fix --version output
This commit is contained in:
Matthias Lisin 2019-05-04 21:17:23 +02:00
parent 1c550849d8
commit 88fa7c0677
2 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
pkgbase = golangci-lint
pkgdesc = Linters Runner for Go. 5x faster than gometalinter.
pkgver = 1.16.0
pkgrel = 1
pkgrel = 2
url = https://github.com/golangci/golangci-lint
arch = any
license = GPL3

View File

@ -3,7 +3,7 @@ pkgname=golangci-lint
pkgdesc="Linters Runner for Go. 5x faster than gometalinter."
pkgver=1.16.0
_commit=97ea1cb # short commit has of release
pkgrel=1
pkgrel=2
arch=('any')
url='https://github.com/golangci/golangci-lint'
license=('GPL3')
@ -26,11 +26,11 @@ build() {
_date=$(date -u -Iseconds -d "@${SOURCE_DATE_EPOCH}" | sed 's/+00:00/Z/')
LDFLAGS+=" -X 'main.version=${pkgver}'"
LDFLAGS+=" -X 'main.commit=${_commit}'"
LDFLAGS+=" -X 'main.date=${date}'"
LDFLAGS+=" -X 'main.date=${_date}'"
go build -gcflags "all=-trimpath=${PWD}" \
-asmflags "all=-trimpath=${PWD}" \
-ldflags "-extldflags=${LDFLAGS}" \
-a -o "$pkgname" ./cmd/"$pkgname"
-o "$pkgname" ./cmd/"$pkgname"
}
package() {