[arch-commits] Commit in staticcheck/trunk (PKGBUILD)
Morten Linderud
foxboron at archlinux.org
Fri May 15 22:08:18 UTC 2020
Date: Friday, May 15, 2020 @ 22:08:18
Author: foxboron
Revision: 628126
upgpkg: staticcheck 2020.1.4-1
Modified:
staticcheck/trunk/PKGBUILD
----------+
PKGBUILD | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-05-15 21:55:18 UTC (rev 628125)
+++ PKGBUILD 2020-05-15 22:08:18 UTC (rev 628126)
@@ -1,7 +1,7 @@
# Maintainer: Morten Linderud <foxboron at archlinux.org>
pkgname=staticcheck
-pkgver=2020.1.3
+pkgver=2020.1.4
pkgrel=1
pkgdesc="Staticcheck - The advanced Go linter"
arch=('x86_64')
@@ -10,7 +10,7 @@
depends=('glibc')
makedepends=('go' 'git')
source=("$pkgname-$pkgver.tar.gz::https://github.com/dominikh/go-tools/archive/$pkgver.tar.gz")
-md5sums=('0032e437aa43b5dfe0c84f3e1bb9a266')
+md5sums=('c0d4c51c76384c682d6bc014bd26bf0d')
prepare(){
cd "go-tools-$pkgver"
@@ -19,9 +19,11 @@
build(){
cd "go-tools-$pkgver"
- export GOFLAGS="-buildmode=pie -trimpath"
- export CGO_CFLAGS="$CFLAGS"
- export CGO_LDFLAGS="$LDFLAGS"
+ export CGO_LDFLAGS="${LDFLAGS}"
+ export CGO_CFLAGS="${CFLAGS}"
+ export CGO_CPPFLAGS="${CPPFLAGS}"
+ export CGO_CXXFLAGS="${CXXFLAGS}"
+ export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
go build -o bin/staticcheck ./cmd/staticcheck
}
More information about the arch-commits
mailing list