[arch-commits] Commit in go-tools/repos (4 files)

Bartłomiej Piotrowski bpiotrowski at archlinux.org
Mon Mar 20 13:37:36 UTC 2017


    Date: Monday, March 20, 2017 @ 13:37:35
  Author: bpiotrowski
Revision: 291103

archrelease: copy trunk to testing-i686, testing-x86_64

Added:
  go-tools/repos/testing-i686/
  go-tools/repos/testing-i686/PKGBUILD
    (from rev 291102, go-tools/trunk/PKGBUILD)
  go-tools/repos/testing-x86_64/
  go-tools/repos/testing-x86_64/PKGBUILD
    (from rev 291102, go-tools/trunk/PKGBUILD)

-------------------------+
 testing-i686/PKGBUILD   |   60 ++++++++++++++++++++++++++++++++++++++++++++++
 testing-x86_64/PKGBUILD |   60 ++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 120 insertions(+)

Copied: go-tools/repos/testing-i686/PKGBUILD (from rev 291102, go-tools/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD	                        (rev 0)
+++ testing-i686/PKGBUILD	2017-03-20 13:37:35 UTC (rev 291103)
@@ -0,0 +1,60 @@
+# $Id$
+# Maintainer: Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
+
+pkgname=go-tools
+epoch=2
+pkgver=1.8.r2071.5682db0e
+pkgrel=1
+pkgdesc='Developer tools for the Go programming language'
+arch=(i686 x86_64)
+url='http://golang.org/'
+license=(BSD)
+depends=(glibc)
+makedepends=(git go)
+_commit=5682db0e919ed9cfc6f52ac32e170511a106eb3b
+_net_commit=a6577fac2d73be281a500b310739095313165611
+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 goimports gomvpkg
+        gorename gotype goyacc guru heapview html2article present ssadump
+        stress stringer)
+
+pkgver() {
+  local _gover=1.8
+  cd tools
+  printf "%s.r%s.%s" $_gover "$(git rev-list --count HEAD)" \
+    "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+  mkdir -p gopath/src/golang.org/x build
+  cp -r 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
+}
+
+check() {
+  export GOPATH="$srcdir/gopath"
+
+  for tool in ${_tools[@]}; do
+    go test golang.org/x/tools/cmd/$tool
+  done
+}
+
+package() {
+  for tool in ${_tools[@]}; do
+    install -Dm755 build/$tool "$pkgdir/usr/bin/$tool"
+  done
+
+  install -Dm644 tools/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}

Copied: go-tools/repos/testing-x86_64/PKGBUILD (from rev 291102, go-tools/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2017-03-20 13:37:35 UTC (rev 291103)
@@ -0,0 +1,60 @@
+# $Id$
+# Maintainer: Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
+
+pkgname=go-tools
+epoch=2
+pkgver=1.8.r2071.5682db0e
+pkgrel=1
+pkgdesc='Developer tools for the Go programming language'
+arch=(i686 x86_64)
+url='http://golang.org/'
+license=(BSD)
+depends=(glibc)
+makedepends=(git go)
+_commit=5682db0e919ed9cfc6f52ac32e170511a106eb3b
+_net_commit=a6577fac2d73be281a500b310739095313165611
+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 goimports gomvpkg
+        gorename gotype goyacc guru heapview html2article present ssadump
+        stress stringer)
+
+pkgver() {
+  local _gover=1.8
+  cd tools
+  printf "%s.r%s.%s" $_gover "$(git rev-list --count HEAD)" \
+    "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+  mkdir -p gopath/src/golang.org/x build
+  cp -r 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
+}
+
+check() {
+  export GOPATH="$srcdir/gopath"
+
+  for tool in ${_tools[@]}; do
+    go test golang.org/x/tools/cmd/$tool
+  done
+}
+
+package() {
+  for tool in ${_tools[@]}; do
+    install -Dm755 build/$tool "$pkgdir/usr/bin/$tool"
+  done
+
+  install -Dm644 tools/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}



More information about the arch-commits mailing list