generated from archlinux/template
upgpkg: golangci-lint 1.16.0-2
Fix --version output
This commit is contained in:
parent
1c550849d8
commit
88fa7c0677
2
.SRCINFO
2
.SRCINFO
@ -1,7 +1,7 @@
|
|||||||
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 = 1
|
pkgrel = 2
|
||||||
url = https://github.com/golangci/golangci-lint
|
url = https://github.com/golangci/golangci-lint
|
||||||
arch = any
|
arch = any
|
||||||
license = GPL3
|
license = GPL3
|
||||||
|
6
PKGBUILD
6
PKGBUILD
@ -3,7 +3,7 @@ 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 has of release
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
arch=('any')
|
arch=('any')
|
||||||
url='https://github.com/golangci/golangci-lint'
|
url='https://github.com/golangci/golangci-lint'
|
||||||
license=('GPL3')
|
license=('GPL3')
|
||||||
@ -26,11 +26,11 @@ build() {
|
|||||||
_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.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=${PWD}" \
|
go build -gcflags "all=-trimpath=${PWD}" \
|
||||||
-asmflags "all=-trimpath=${PWD}" \
|
-asmflags "all=-trimpath=${PWD}" \
|
||||||
-ldflags "-extldflags=${LDFLAGS}" \
|
-ldflags "-extldflags=${LDFLAGS}" \
|
||||||
-a -o "$pkgname" ./cmd/"$pkgname"
|
-o "$pkgname" ./cmd/"$pkgname"
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user