[arch-commits] Commit in go/trunk (PKGBUILD)

Bartłomiej Piotrowski bpiotrowski at archlinux.org
Sun Dec 10 14:22:09 UTC 2017


    Date: Sunday, December 10, 2017 @ 14:22:08
  Author: bpiotrowski
Revision: 312047

2:1.9.2-3: build stdlib also dynamically and with race detector enabled

Modified:
  go/trunk/PKGBUILD

----------+
 PKGBUILD |   17 ++++++++++-------
 1 file changed, 10 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-12-10 14:16:40 UTC (rev 312046)
+++ PKGBUILD	2017-12-10 14:22:08 UTC (rev 312047)
@@ -5,17 +5,15 @@
 pkgname=(go go-pie)
 epoch=2
 pkgver=1.9.2
-pkgrel=2
+pkgrel=3
 arch=(x86_64)
 url='http://golang.org/'
 license=(BSD)
 makedepends=(git go)
-options=(!strip staticlibs)
-_commit=2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9  # tags/go1.9.2
-source=(git+https://go.googlesource.com/go#commit=$_commit
+source=(https://storage.googleapis.com/golang/go$pkgver.src.tar.gz
         default-buildmode-pie.patch)
-md5sums=('SKIP'
-         '4feaf3d9028fff473d5a365389ced4c9')
+sha256sums=('665f184bf8ac89986cfd5a4460736976f60b57df6b320ad71ad4cef53bb143dc'
+            'fd0055504e4175c1f444816636dfb53fc0ddee991fa2696bb64b087130bba96d')
 
 export GOOS=linux
 case "$CARCH" in
@@ -33,13 +31,17 @@
 }
 
 build() {
-  export GOBIN="$GOROOT/bin"
   export GOPATH="$srcdir/"
 
   for _pkgname in ${pkgname[@]}; do
     export GOROOT="$srcdir/$_pkgname"
+    export GOBIN="$GOROOT/bin"
+
     cd "$srcdir/$_pkgname/src"
     ./make.bash --no-clean
+
+    PATH="$GOBIN:$PATH" go install -buildmode=shared std
+    PATH="$GOBIN:$PATH" go install -race std
   done
 }
 
@@ -55,6 +57,7 @@
 }
 
 _package() {
+  options=(!strip staticlibs)
   cd "$srcdir/$1"
 
   install -d "$pkgdir/usr/bin" "$pkgdir/usr/lib/go" "$pkgdir/usr/share/doc/go"



More information about the arch-commits mailing list