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

View File

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