upgpkg: golangci-lint 1.18.0-1

This commit is contained in:
Matthias Lisin 2019-09-10 13:49:04 +02:00
parent a67ae6f0d3
commit c73b6459e4
2 changed files with 7 additions and 8 deletions

View File

@ -1,6 +1,6 @@
pkgbase = golangci-lint
pkgdesc = Linters Runner for Go. 5x faster than gometalinter.
pkgver = 1.17.1
pkgver = 1.18.0
pkgrel = 1
url = https://github.com/golangci/golangci-lint
arch = x86_64
@ -8,8 +8,8 @@ pkgbase = golangci-lint
license = GPL3
makedepends = git
makedepends = go
source = golangci-lint-1.17.1.tar.gz::https://github.com/golangci/golangci-lint/archive/v1.17.1.tar.gz
sha512sums = de7272eb47e4e9ecc7559dd55d5f75eadcddcb2013eb577596f7c2fb6f823578d5c54c74b9368293cf6dd4d2dfe06781ca588673f3eaf733f63f3240ea155556
source = golangci-lint-1.18.0.tar.gz::https://github.com/golangci/golangci-lint/archive/v1.18.0.tar.gz
sha512sums = f8ead30abee9216387c730a00a09171e5c90486f95dbde083a59703a8047bd26bbf666b80b50f0f36f5dc352248320b725336f5cabb9d8b61c22efa0ce23a7d9
pkgname = golangci-lint

View File

@ -1,15 +1,15 @@
# Maintainer: Matthias Lisin <ml@visu.li>
pkgname=golangci-lint
pkgdesc="Linters Runner for Go. 5x faster than gometalinter."
pkgver=1.17.1
_commit=4ba2155 # short commit hash of release
pkgver=1.18.0
_commit=31afdf8 # short commit hash of release
pkgrel=1
arch=('x86_64' 'i686')
url='https://github.com/golangci/golangci-lint'
license=('GPL3')
makedepends=('git' 'go')
source=("$pkgname-$pkgver.tar.gz::https://github.com/golangci/golangci-lint/archive/v${pkgver}.tar.gz")
sha512sums=('de7272eb47e4e9ecc7559dd55d5f75eadcddcb2013eb577596f7c2fb6f823578d5c54c74b9368293cf6dd4d2dfe06781ca588673f3eaf733f63f3240ea155556')
sha512sums=('f8ead30abee9216387c730a00a09171e5c90486f95dbde083a59703a8047bd26bbf666b80b50f0f36f5dc352248320b725336f5cabb9d8b61c22efa0ce23a7d9')
build() {
cd "${pkgname}-${pkgver}"
@ -19,8 +19,7 @@ build() {
LDFLAGS+=" -X 'main.version=${pkgver}'"
LDFLAGS+=" -X 'main.commit=${_commit}'"
LDFLAGS+=" -X 'main.date=${_date}'"
go build -gcflags "all=-trimpath=${srcdir}" \
-asmflags "all=-trimpath=${srcdir}" \
go build -trimpath \
-ldflags "-extldflags=${LDFLAGS}" \
-buildmode=pie -o "$pkgname" ./cmd/"$pkgname"
}