upgpkg: golangci-litn 1.19.1-1

This commit is contained in:
Matthias Lisin 2019-09-25 19:49:12 +02:00
parent e8d77b496b
commit 3dca9aea09
2 changed files with 10 additions and 10 deletions

View File

@ -1,6 +1,6 @@
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.19.0 pkgver = 1.19.1
pkgrel = 1 pkgrel = 1
url = https://github.com/golangci/golangci-lint url = https://github.com/golangci/golangci-lint
arch = x86_64 arch = x86_64
@ -11,8 +11,8 @@ pkgbase = golangci-lint
license = GPL3 license = GPL3
makedepends = git makedepends = git
makedepends = go makedepends = go
source = golangci-lint-1.19.0.tar.gz::https://github.com/golangci/golangci-lint/archive/v1.19.0.tar.gz source = golangci-lint-1.19.1.tar.gz::https://github.com/golangci/golangci-lint/archive/v1.19.1.tar.gz
sha512sums = 629b6bbdc1da8d1460bfcaa4013d8c7f5fdeca05ffe6c4cda9ea3dba96f870214edb7bd1c81638ed6877677dd6e1fe12999e3e69dea85bc0632f9910a4a61a19 sha512sums = 099a3280c5d6764db6f53bd2a41d0547143b211650ffc93f2105d2a96c47473e3c933e1999f0cdd133a5f8f13bfcc9513b796b460e2967532ac5b35c178e7b43
pkgname = golangci-lint pkgname = golangci-lint

View File

@ -1,26 +1,26 @@
# Maintainer: Matthias Lisin <ml@visu.li> # Maintainer: Matthias Lisin <ml@visu.li>
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.19.0 pkgver=1.19.1
_commit=27ac4c7 # short commit hash of release _commit=c427c61 # short commit hash of release
pkgrel=1 pkgrel=1
arch=('x86_64' 'i686' 'aarch64' 'armv7h' 'armv6h') arch=('x86_64' 'i686' 'aarch64' 'armv7h' 'armv6h')
url='https://github.com/golangci/golangci-lint' url='https://github.com/golangci/golangci-lint'
license=('GPL3') license=('GPL3')
makedepends=('git' 'go') makedepends=('git' 'go')
source=("$pkgname-$pkgver.tar.gz::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=('629b6bbdc1da8d1460bfcaa4013d8c7f5fdeca05ffe6c4cda9ea3dba96f870214edb7bd1c81638ed6877677dd6e1fe12999e3e69dea85bc0632f9910a4a61a19') sha512sums=('099a3280c5d6764db6f53bd2a41d0547143b211650ffc93f2105d2a96c47473e3c933e1999f0cdd133a5f8f13bfcc9513b796b460e2967532ac5b35c178e7b43')
build() { build() {
cd "${pkgname}-${pkgver}" cd "${pkgname}-${pkgver}"
export GOPATH="$srcdir" export GOPATH="$srcdir"
# ISO-8601, like the official binary # ISO-8601, like the official binary
_date=$(date -u -Iseconds -d "@${SOURCE_DATE_EPOCH}" | sed 's/+00:00/Z/') _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}'"
go build -trimpath \ go build -trimpath \
-ldflags "-extldflags=${LDFLAGS}" \ -ldflags "-X 'main.version=${pkgver}' \
-X 'main.commit=${_commit}' \
-X 'main.date=${_date}' \
-extldflags=${LDFLAGS}" \
-buildmode=pie -o "$pkgname" ./cmd/"$pkgname" -buildmode=pie -o "$pkgname" ./cmd/"$pkgname"
} }