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

Morten Linderud foxboron at archlinux.org
Sun Sep 2 14:28:21 UTC 2018


    Date: Sunday, September 2, 2018 @ 14:28:20
  Author: foxboron
Revision: 376047

upgpkg: go-tools 2:1.11+2495+9e9bf16a-1

Added new tools: compilebench go-contrib-init tip toolstash

Modified:
  go-tools/trunk/PKGBUILD

----------+
 PKGBUILD |   36 ++++++++++++++++--------------------
 1 file changed, 16 insertions(+), 20 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-09-02 14:01:09 UTC (rev 376046)
+++ PKGBUILD	2018-09-02 14:28:20 UTC (rev 376047)
@@ -1,9 +1,9 @@
-# $Id$
 # Maintainer: Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
+# Maintainer: Morten Linderud <foxboron at archlinux.org>
 
 pkgname=go-tools
 epoch=2
-pkgver=1.10+2306+25101aad
+pkgver=1.11+2495+9e9bf16a
 pkgrel=1
 pkgdesc='Developer tools for the Go programming language'
 arch=(x86_64)
@@ -11,19 +11,20 @@
 license=(BSD)
 depends=(glibc)
 makedepends=(git go-pie)
-_commit=25101aadb97aa42907eee6a238d6d26a6cb3c756
-_net_commit=136a25c244d3019482a795d728110278d6ba09a4
+_commit=9e9bf16a4efe175e2867e1661feefa6278e4e14e
+_net_commit=c39426892332e1bb5ec0a434a079bf82f5d30c54
 source=(git+https://go.googlesource.com/tools#commit=$_commit
         git+https://github.com/golang/net#commit=$_net_commit)
 md5sums=('SKIP'
          'SKIP')
 
-_tools=(benchcmp callgraph cover digraph eg fiximports godex godoc goimports
-        gomvpkg gorename gotype goyacc guru heapview html2article present
-        ssadump stringer)
+_tools=(benchcmp callgraph compilebench cover digraph eg fiximports
+        go-contrib-init godex godoc goimports gomvpkg gorename gotype 
+        goyacc guru heapview html2article present ssadump stringer 
+        tip toolstash)
 
 pkgver() {
-  local _gover=1.10
+  local _gover=1.11
   cd tools
   printf "%s+%s+%s" $_gover "$(git rev-list --count HEAD)" \
     "$(git rev-parse --short HEAD)"
@@ -30,30 +31,25 @@
 }
 
 prepare() {
-  mkdir -p gopath/src/golang.org/x build
-  cp -r tools net gopath/src/golang.org/x/
+  mkdir -p gopath/src/golang.org/x
+  cp -rf tools net gopath/src/golang.org/x/
 }
 
 build() {
   export GOPATH="$srcdir/gopath"
-
-  cd build
-  for tool in ${_tools[@]}; do
-    go build -v -a golang.org/x/tools/cmd/$tool
-  done
+  cd gopath/src/golang.org/x/tools
+  go install -v -a -gcflags "all=-trimpath=${GOPATH}" -asmflags "all=-trimpath=${GOPATH}" ./cmd/...
 }
 
 check() {
   export GOPATH="$srcdir/gopath"
-
-  for tool in ${_tools[@]}; do
-    go test golang.org/x/tools/cmd/$tool
-  done
+  cd gopath/src/golang.org/x/tools
+  go test ./cmd/...
 }
 
 package() {
   for tool in ${_tools[@]}; do
-    install -Dm755 build/$tool "$pkgdir/usr/bin/$tool"
+    install -Dm755 gopath/bin/$tool "$pkgdir/usr/bin/$tool"
   done
 
   install -Dm644 tools/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"



More information about the arch-commits mailing list