upgpkg: golangci-lint 1.16.0-4

This commit is contained in:
Matthias Lisin 2019-05-05 14:48:35 +02:00
parent 3f7d586c58
commit 3bb4e94bbf
2 changed files with 11 additions and 15 deletions

View File

@ -1,16 +1,14 @@
pkgbase = golangci-lint
pkgdesc = Linters Runner for Go. 5x faster than gometalinter.
pkgver = 1.16.0
pkgrel = 3
pkgrel = 4
url = https://github.com/golangci/golangci-lint
arch = any
arch = x86_64
arch = i686
license = GPL3
makedepends = git
makedepends = go
provides = golangci-lint
conflicts = golangci-lint
conflicts = golangci-lint-git
source = https://github.com/golangci/golangci-lint/archive/v1.16.0.tar.gz
source = golangci-lint-1.16.0.tar.gz::https://github.com/golangci/golangci-lint/archive/v1.16.0.tar.gz
sha512sums = 1b0c63ca31c93761d24071cac8eb27278075230f9f93026d9b38e106069f9ecc5618621372ef4a4a886ef3791b50d953fd7c9889e7443960bff18a1d72cfcda9
pkgname = golangci-lint

View File

@ -2,15 +2,13 @@
pkgname=golangci-lint
pkgdesc="Linters Runner for Go. 5x faster than gometalinter."
pkgver=1.16.0
_commit=97ea1cb # short commit has of release
pkgrel=3
arch=('any')
_commit=97ea1cb # short commit hash of release
pkgrel=4
arch=('x86_64' 'i686')
url='https://github.com/golangci/golangci-lint'
license=('GPL3')
makedepends=('git' 'go')
provides=('golangci-lint')
conflicts=('golangci-lint' 'golangci-lint-git')
source=("https://github.com/golangci/golangci-lint/archive/v${pkgver}.tar.gz")
source=("$pkgname-$pkgver.tar.gz::https://github.com/golangci/golangci-lint/archive/v${pkgver}.tar.gz")
sha512sums=('1b0c63ca31c93761d24071cac8eb27278075230f9f93026d9b38e106069f9ecc5618621372ef4a4a886ef3791b50d953fd7c9889e7443960bff18a1d72cfcda9')
build() {
@ -21,10 +19,10 @@ build() {
LDFLAGS+=" -X 'main.version=${pkgver}'"
LDFLAGS+=" -X 'main.commit=${_commit}'"
LDFLAGS+=" -X 'main.date=${_date}'"
go build -gcflags "all=-trimpath=${GOPATH}" \
-asmflags "all=-trimpath=${GOPATH}" \
go build -gcflags "all=-trimpath=${srcdir}" \
-asmflags "all=-trimpath=${srcdir}" \
-ldflags "-extldflags=${LDFLAGS}" \
-o "$pkgname" ./cmd/"$pkgname"
-buildmode=pie -o "$pkgname" ./cmd/"$pkgname"
}
package() {