Date: Tuesday, October 13, 2020 @ 17:51:31
  Author: foxboron
Revision: 723843

upgpkg: staticcheck 2020.1.6-1

Modified:
  staticcheck/trunk/PKGBUILD

----------+
 PKGBUILD |   13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2020-10-13 17:36:59 UTC (rev 723842)
+++ PKGBUILD    2020-10-13 17:51:31 UTC (rev 723843)
@@ -1,20 +1,23 @@
 # Maintainer: Morten Linderud <foxbo...@archlinux.org>
 
 pkgname=staticcheck
-pkgver=2020.1.5
+pkgver=2020.1.6
 pkgrel=1
-pkgdesc="Staticcheck - The advanced Go linter"
+pkgdesc="The advanced Go linter"
 arch=('x86_64')
 url="https://staticcheck.io";
 license=("MIT")
 depends=('glibc')
 makedepends=('go' 'git')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/dominikh/go-tools/archive/$pkgver.tar.gz";)
-md5sums=('029ae003e14c1543f43db9539901c6bf')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/dominikh/go-tools/archive/$pkgver.tar.gz";
+               
"fix-tests.patch::https://github.com/dominikh/go-tools/commit/542e8c572ba90537f28d6272df560105e64d5e9c.patch";)
+md5sums=('af80714ca51ed1964901eb0ac94756a6'
+         '622467f6c704c75a132164b1fe0783f2')
 
 prepare(){
        cd "go-tools-$pkgver"
        mkdir -p bin
+       patch -Np1 < "$srcdir/fix-tests.patch"
 }
 
 build(){
@@ -23,7 +26,7 @@
        export CGO_CFLAGS="${CFLAGS}"
        export CGO_CPPFLAGS="${CPPFLAGS}"
        export CGO_CXXFLAGS="${CXXFLAGS}"
-       export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
+       export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw 
-ldflags=-linkmode=external"
        go build -o bin/staticcheck ./cmd/staticcheck
 }
 

Reply via email to