[arch-commits] Commit in go-tools/trunk (PKGBUILD)
Morten Linderud
foxboron at archlinux.org
Tue Jun 9 21:33:17 UTC 2020
Date: Tuesday, June 9, 2020 @ 21:33:17
Author: foxboron
Revision: 641012
upgpkg: go-tools 2:1.14+3923+c00d67ef2-1
Go package guidelines
Modified:
go-tools/trunk/PKGBUILD
----------+
PKGBUILD | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-06-09 21:33:15 UTC (rev 641011)
+++ PKGBUILD 2020-06-09 21:33:17 UTC (rev 641012)
@@ -3,7 +3,7 @@
pkgname=go-tools
epoch=2
-pkgver=1.14+3922+575de4798
+pkgver=1.14+3923+c00d67ef2
pkgrel=1
pkgdesc='Developer tools for the Go programming language'
arch=(x86_64)
@@ -10,8 +10,8 @@
url='https://golang.org/'
license=(BSD)
depends=(glibc)
-makedepends=(git go-pie)
-_commit=575de47986ce07f39826bf8d5e365d5ebf51ee63
+makedepends=(git go)
+_commit=c00d67ef29d03e4dd86a6fb6a75dba1b71a5e294
_net_commit=ef20fe5d793301b553005db740f730d87993f778
source=(go-tools::git+https://go.googlesource.com/tools#commit=$_commit
golang-net::git+https://github.com/golang/net#commit=$_net_commit)
@@ -39,7 +39,12 @@
build() {
export GOPATH="$srcdir/gopath"
cd gopath/src/golang.org/x/tools
- go install -v -a -trimpath -ldflags "-extldflags ${LDFLAGS}" ./cmd/...
+ export CGO_CPPFLAGS="${CPPFLAGS}"
+ export CGO_CFLAGS="${CFLAGS}"
+ export CGO_CXXFLAGS="${CXXFLAGS}"
+ export CGO_LDFLAGS="${LDFLAGS}"
+ export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
+ go install -v -a ./cmd/...
}
check() {
More information about the arch-commits
mailing list