updpkg: golangci-lint 1.28.0-1

This commit is contained in:
Matthias Lisin 2020-07-05 20:10:55 +02:00
parent 3968694a14
commit 68974820d3
3 changed files with 15 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.27.0 pkgver = 1.28.0
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,10 +11,9 @@ pkgbase = golangci-lint
license = GPL3 license = GPL3
makedepends = git makedepends = git
makedepends = go makedepends = go
makedepends = gzip
depends = glibc depends = glibc
source = golangci-lint-1.27.0.tar.gz::https://github.com/golangci/golangci-lint/archive/v1.27.0.tar.gz source = https://github.com/golangci/golangci-lint/archive/v1.28.0/golangci-lint-1.28.0.tar.gz
sha256sums = 11a23b60416cab57a7d83c97d723212ec3c430c4d9fdfc698e5f5276cd5ac15a sha256sums = ecaf05a1194e1fb2724be9fc70fccb88cd98cc9fd8403d7694e1d8ed7622d661
pkgname = golangci-lint pkgname = golangci-lint

6
.gitignore vendored Normal file
View File

@ -0,0 +1,6 @@
/pkg/
/src/
/*.log
/*.tar.gz
/*.pkg.tar*
/*.src.tar*

View File

@ -1,15 +1,15 @@
# Maintainer: Matthias Lisin <ml@visu.li> # Maintainer: ml <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.27.0 pkgver=1.28.0
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')
depends=('glibc') depends=('glibc')
makedepends=('git' 'go' 'gzip') makedepends=('git' 'go')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/golangci/golangci-lint/archive/v${pkgver}.tar.gz") source=("https://github.com/golangci/golangci-lint/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
sha256sums=('11a23b60416cab57a7d83c97d723212ec3c430c4d9fdfc698e5f5276cd5ac15a') sha256sums=('ecaf05a1194e1fb2724be9fc70fccb88cd98cc9fd8403d7694e1d8ed7622d661')
prepare() { prepare() {
cd "${pkgname}-${pkgver}" cd "${pkgname}-${pkgver}"
@ -18,7 +18,7 @@ prepare() {
build() { build() {
local _commit _flags local _commit _flags
_commit=$(zcat "${pkgname}-${pkgver}.tar.gz" | git get-tar-commit-id) _commit=$(bsdcat "${pkgname}-${pkgver}.tar.gz" | git get-tar-commit-id)
_flags=( _flags=(
-X=main.version=$pkgver -X=main.version=$pkgver
-X=main.commit=${_commit::7} -X=main.commit=${_commit::7}