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

2017-05-24 Thread Bartłomiej Piotrowski
Date: Thursday, May 25, 2017 @ 06:47:17
  Author: bpiotrowski
Revision: 296551

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

Added:
  go/repos/extra-i686/PKGBUILD
(from rev 296550, go/trunk/PKGBUILD)
  go/repos/extra-x86_64/PKGBUILD
(from rev 296550, go/trunk/PKGBUILD)
Deleted:
  go/repos/extra-i686/PKGBUILD
  go/repos/extra-x86_64/PKGBUILD

---+
 /PKGBUILD |  138 
 extra-i686/PKGBUILD   |   69 
 extra-x86_64/PKGBUILD |   69 
 3 files changed, 138 insertions(+), 138 deletions(-)

Deleted: extra-i686/PKGBUILD
===
--- extra-i686/PKGBUILD 2017-05-25 06:47:04 UTC (rev 296550)
+++ extra-i686/PKGBUILD 2017-05-25 06:47:17 UTC (rev 296551)
@@ -1,69 +0,0 @@
-# $Id$
-# Maintainer: Bartłomiej Piotrowski 
-
-pkgname=go
-epoch=2
-pkgver=1.8.2
-pkgrel=1
-pkgdesc='Core compiler tools for the Go programming language'
-arch=(i686 x86_64)
-url='http://golang.org/'
-license=(BSD)
-makedepends=(git go)
-options=(!strip staticlibs)
-_commit=59870f9e19384c3155f603f799b61b401fa20cc9
-source=(git+https://go.googlesource.com/go#commit=$_commit)
-md5sums=('SKIP')
-
-export GOOS=linux
-case "$CARCH" in
-  x86_64) export GOARCH=amd64 ;;
-  i686) export GOARCH=386 GO386=387 ;;
-esac
-export GOROOT_FINAL=/usr/lib/go
-export GOROOT_BOOTSTRAP=/usr/lib/go
-
-build() {
-  export GOROOT="$srcdir/$pkgname"
-  export GOBIN="$GOROOT/bin"
-  export GOPATH="$srcdir/"
-
-  cd $pkgname/src
-  ./make.bash --no-clean
-}
-
-check() {
-  export GOROOT="$srcdir/$pkgname"
-  export GOBIN="$GOROOT/bin"
-  export PATH="$srcdir/$pkgname-$pkgver/bin:$PATH"
-  export GO_TEST_TIMEOUT_SCALE=2
-
-  # The cgo_test and race tests fail via run.bash but not if run manually.
-  # Assume that five "failed" messages are okay and just re-run failed tests.
-  cd $pkgname/src
-  ./run.bash --no-rebuild -v -v -v -k |& tee run.log
-  if (( $(grep -c Failed: run.log) > 5 )) && grep -q FAILED run.log; then
-return 1
-  fi
-
-  go tool dist test -v -v -v -run=^cgo_test$
-  go tool dist test -v -v -v -run=^race$
-}
-
-package() {
-  cd $pkgbase
-
-  install -d "$pkgdir/usr/bin" "$pkgdir/usr/lib/go" "$pkgdir/usr/share/doc/go"
-  cp -a bin pkg src lib misc "$pkgdir/usr/lib/go"
-  cp -r doc/* "$pkgdir/usr/share/doc/go"
-
-  ln -sf /usr/lib/go/bin/go "$pkgdir/usr/bin/go"
-  ln -sf /usr/lib/go/bin/gofmt "$pkgdir/usr/bin/gofmt"
-  ln -sf /usr/share/doc/go "$pkgdir/usr/lib/go/doc"
-
-  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/go/LICENSE"
-  install -Dm644 VERSION "$pkgdir/usr/lib/go/VERSION"
-
-  rm -rf "$pkgdir/usr/lib/go/pkg/bootstrap"
-  rm -rf "$pkgdir/usr/lib/go/pkg/tool/*/api"
-}

Copied: go/repos/extra-i686/PKGBUILD (from rev 296550, go/trunk/PKGBUILD)
===
--- extra-i686/PKGBUILD (rev 0)
+++ extra-i686/PKGBUILD 2017-05-25 06:47:17 UTC (rev 296551)
@@ -0,0 +1,69 @@
+# $Id$
+# Maintainer: Bartłomiej Piotrowski 
+
+pkgname=go
+epoch=2
+pkgver=1.8.3
+pkgrel=1
+pkgdesc='Core compiler tools for the Go programming language'
+arch=(i686 x86_64)
+url='http://golang.org/'
+license=(BSD)
+makedepends=(git go)
+options=(!strip staticlibs)
+_commit=352996a381701cfa0c16e8de29cbde8f3922182f
+source=(git+https://go.googlesource.com/go#commit=$_commit)
+md5sums=('SKIP')
+
+export GOOS=linux
+case "$CARCH" in
+  x86_64) export GOARCH=amd64 ;;
+  i686) export GOARCH=386 GO386=387 ;;
+esac
+export GOROOT_FINAL=/usr/lib/go
+export GOROOT_BOOTSTRAP=/usr/lib/go
+
+build() {
+  export GOROOT="$srcdir/$pkgname"
+  export GOBIN="$GOROOT/bin"
+  export GOPATH="$srcdir/"
+
+  cd $pkgname/src
+  ./make.bash --no-clean
+}
+
+check() {
+  export GOROOT="$srcdir/$pkgname"
+  export GOBIN="$GOROOT/bin"
+  export PATH="$srcdir/$pkgname-$pkgver/bin:$PATH"
+  export GO_TEST_TIMEOUT_SCALE=2
+
+  # The cgo_test and race tests fail via run.bash but not if run manually.
+  # Assume that five "failed" messages are okay and just re-run failed tests.
+  cd $pkgname/src
+  ./run.bash --no-rebuild -v -v -v -k |& tee run.log
+  if (( $(grep -c Failed: run.log) > 5 )) && grep -q FAILED run.log; then
+return 1
+  fi
+
+  go tool dist test -v -v -v -run=^cgo_test$
+  go tool dist test -v -v -v -run=^race$
+}
+
+package() {
+  cd $pkgbase
+
+  install -d "$pkgdir/usr/bin" "$pkgdir/usr/lib/go" "$pkgdir/usr/share/doc/go"
+  cp -a bin pkg src lib misc "$pkgdir/usr/lib/go"
+  cp -r doc/* "$pkgdir/usr/share/doc/go"
+
+  ln -sf /usr/lib/go/bin/go "$pkgdir/usr/bin/go"
+  ln -sf /usr/lib/go/bin/gofmt "$pkgdir/usr/bin/gofmt"
+  ln -sf /usr/share/doc/go "$pkgdir/usr/lib/go/doc"
+
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/go/LICENSE"
+  install -Dm644 VERSION "$pkgdir/usr/lib/go/VERSION"
+
+  rm -rf "$pkgdir/usr/lib/go/pkg/bootstrap"
+  rm -rf "$pkgdir/usr/lib/go/pkg/tool/*/api"
+}

Deleted: extra-x86_64/PKGBUILD

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

2017-05-24 Thread Bartłomiej Piotrowski
Date: Wednesday, May 24, 2017 @ 11:25:37
  Author: bpiotrowski
Revision: 296528

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

Added:
  go/repos/extra-i686/PKGBUILD
(from rev 296527, go/trunk/PKGBUILD)
  go/repos/extra-x86_64/PKGBUILD
(from rev 296527, go/trunk/PKGBUILD)
Deleted:
  go/repos/extra-i686/PKGBUILD
  go/repos/extra-x86_64/PKGBUILD

---+
 /PKGBUILD |  138 
 extra-i686/PKGBUILD   |   69 
 extra-x86_64/PKGBUILD |   69 
 3 files changed, 138 insertions(+), 138 deletions(-)

Deleted: extra-i686/PKGBUILD
===
--- extra-i686/PKGBUILD 2017-05-24 11:25:03 UTC (rev 296527)
+++ extra-i686/PKGBUILD 2017-05-24 11:25:37 UTC (rev 296528)
@@ -1,69 +0,0 @@
-# $Id$
-# Maintainer: Bartłomiej Piotrowski 
-
-pkgname=go
-epoch=2
-pkgver=1.8.1
-pkgrel=2
-pkgdesc='Core compiler tools for the Go programming language'
-arch=(i686 x86_64)
-url='http://golang.org/'
-license=(BSD)
-makedepends=(git go)
-options=(!strip staticlibs)
-_commit=a4c18f063b6659079ca2848ca217a0587dabc001
-source=(git+https://go.googlesource.com/go#commit=$_commit)
-md5sums=('SKIP')
-
-export GOOS=linux
-case "$CARCH" in
-  x86_64) export GOARCH=amd64 ;;
-  i686) export GOARCH=386 GO386=387 ;;
-esac
-export GOROOT_FINAL=/usr/lib/go
-export GOROOT_BOOTSTRAP=/usr/lib/go
-
-build() {
-  export GOROOT="$srcdir/$pkgname"
-  export GOBIN="$GOROOT/bin"
-  export GOPATH="$srcdir/"
-
-  cd $pkgname/src
-  ./make.bash --no-clean
-}
-
-check() {
-  export GOROOT="$srcdir/$pkgname"
-  export GOBIN="$GOROOT/bin"
-  export PATH="$srcdir/$pkgname-$pkgver/bin:$PATH"
-  export GO_TEST_TIMEOUT_SCALE=2
-
-  # The cgo_test and race tests fail via run.bash but not if run manually.
-  # Assume that five "failed" messages are okay and just re-run failed tests.
-  cd $pkgname/src
-  ./run.bash --no-rebuild -v -v -v -k |& tee run.log
-  if (( $(grep -c Failed: run.log) > 5 )) && grep -q FAILED run.log; then
-return 1
-  fi
-
-  go tool dist test -v -v -v -run=^cgo_test$
-  go tool dist test -v -v -v -run=^race$
-}
-
-package() {
-  cd $pkgbase
-
-  install -d "$pkgdir/usr/bin" "$pkgdir/usr/lib/go" "$pkgdir/usr/share/doc/go"
-  cp -a bin pkg src lib misc "$pkgdir/usr/lib/go"
-  cp -r doc/* "$pkgdir/usr/share/doc/go"
-
-  ln -sf /usr/lib/go/bin/go "$pkgdir/usr/bin/go"
-  ln -sf /usr/lib/go/bin/gofmt "$pkgdir/usr/bin/gofmt"
-  ln -sf /usr/share/doc/go "$pkgdir/usr/lib/go/doc"
-
-  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/go/LICENSE"
-  install -Dm644 VERSION "$pkgdir/usr/lib/go/VERSION"
-
-  rm -rf "$pkgdir/usr/lib/go/pkg/bootstrap"
-  rm -rf "$pkgdir/usr/lib/go/pkg/tool/*/api"
-}

Copied: go/repos/extra-i686/PKGBUILD (from rev 296527, go/trunk/PKGBUILD)
===
--- extra-i686/PKGBUILD (rev 0)
+++ extra-i686/PKGBUILD 2017-05-24 11:25:37 UTC (rev 296528)
@@ -0,0 +1,69 @@
+# $Id$
+# Maintainer: Bartłomiej Piotrowski 
+
+pkgname=go
+epoch=2
+pkgver=1.8.2
+pkgrel=1
+pkgdesc='Core compiler tools for the Go programming language'
+arch=(i686 x86_64)
+url='http://golang.org/'
+license=(BSD)
+makedepends=(git go)
+options=(!strip staticlibs)
+_commit=59870f9e19384c3155f603f799b61b401fa20cc9
+source=(git+https://go.googlesource.com/go#commit=$_commit)
+md5sums=('SKIP')
+
+export GOOS=linux
+case "$CARCH" in
+  x86_64) export GOARCH=amd64 ;;
+  i686) export GOARCH=386 GO386=387 ;;
+esac
+export GOROOT_FINAL=/usr/lib/go
+export GOROOT_BOOTSTRAP=/usr/lib/go
+
+build() {
+  export GOROOT="$srcdir/$pkgname"
+  export GOBIN="$GOROOT/bin"
+  export GOPATH="$srcdir/"
+
+  cd $pkgname/src
+  ./make.bash --no-clean
+}
+
+check() {
+  export GOROOT="$srcdir/$pkgname"
+  export GOBIN="$GOROOT/bin"
+  export PATH="$srcdir/$pkgname-$pkgver/bin:$PATH"
+  export GO_TEST_TIMEOUT_SCALE=2
+
+  # The cgo_test and race tests fail via run.bash but not if run manually.
+  # Assume that five "failed" messages are okay and just re-run failed tests.
+  cd $pkgname/src
+  ./run.bash --no-rebuild -v -v -v -k |& tee run.log
+  if (( $(grep -c Failed: run.log) > 5 )) && grep -q FAILED run.log; then
+return 1
+  fi
+
+  go tool dist test -v -v -v -run=^cgo_test$
+  go tool dist test -v -v -v -run=^race$
+}
+
+package() {
+  cd $pkgbase
+
+  install -d "$pkgdir/usr/bin" "$pkgdir/usr/lib/go" "$pkgdir/usr/share/doc/go"
+  cp -a bin pkg src lib misc "$pkgdir/usr/lib/go"
+  cp -r doc/* "$pkgdir/usr/share/doc/go"
+
+  ln -sf /usr/lib/go/bin/go "$pkgdir/usr/bin/go"
+  ln -sf /usr/lib/go/bin/gofmt "$pkgdir/usr/bin/gofmt"
+  ln -sf /usr/share/doc/go "$pkgdir/usr/lib/go/doc"
+
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/go/LICENSE"
+  install -Dm644 VERSION "$pkgdir/usr/lib/go/VERSION"
+
+  rm -rf "$pkgdir/usr/lib/go/pkg/bootstrap"
+  rm -rf "$pkgdir/usr/lib/go/pkg/tool/*/api"
+}

Deleted: extra-x86_64/PKGBUIL

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

2017-04-21 Thread Bartłomiej Piotrowski
Date: Friday, April 21, 2017 @ 07:09:23
  Author: bpiotrowski
Revision: 293782

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

Added:
  go/repos/extra-i686/PKGBUILD
(from rev 293781, go/trunk/PKGBUILD)
  go/repos/extra-x86_64/PKGBUILD
(from rev 293781, go/trunk/PKGBUILD)
Deleted:
  go/repos/extra-i686/PKGBUILD
  go/repos/extra-x86_64/PKGBUILD

---+
 /PKGBUILD |  138 
 extra-i686/PKGBUILD   |   69 
 extra-x86_64/PKGBUILD |   69 
 3 files changed, 138 insertions(+), 138 deletions(-)

Deleted: extra-i686/PKGBUILD
===
--- extra-i686/PKGBUILD 2017-04-21 07:09:01 UTC (rev 293781)
+++ extra-i686/PKGBUILD 2017-04-21 07:09:23 UTC (rev 293782)
@@ -1,69 +0,0 @@
-# $Id$
-# Maintainer: Bartłomiej Piotrowski 
-
-pkgname=go
-epoch=2
-pkgver=1.8.1
-pkgrel=1
-pkgdesc='Core compiler tools for the Go programming language'
-arch=(i686 x86_64)
-url='http://golang.org/'
-license=(BSD)
-makedepends=(git go)
-options=(!strip staticlibs)
-_commit=a4c18f063b6659079ca2848ca217a0587dabc001
-source=(git+https://go.googlesource.com/go#commit=$_commit)
-md5sums=('SKIP')
-
-export GOOS=linux
-case "$CARCH" in
-  x86_64) export GOARCH=amd64 ;;
-  i686) export GOARCH=386 GO386=387 ;;
-esac
-export GOROOT_FINAL=/usr/lib/go
-export GOROOT_BOOTSTRAP=/usr/lib/go
-
-build() {
-  export GOROOT="$srcdir/$pkgname"
-  export GOBIN="$GOROOT/bin"
-  export GOPATH="$srcdir/"
-
-  cd $pkgname/src
-  ./make.bash --no-clean
-}
-
-check() {
-  export GOROOT="$srcdir/$pkgname"
-  export GOBIN="$GOROOT/bin"
-  export PATH="$srcdir/$pkgname-$pkgver/bin:$PATH"
-  export GO_TEST_TIMEOUT_SCALE=2
-
-  # The cgo_test and race tests fail via run.bash but not if run manually.
-  # Assume that five "failed" messages are okay and just re-run failed tests.
-  cd $pkgname/src
-  ./run.bash --no-rebuild -v -v -v -k |& tee run.log
-  if (( $(grep -c Failed: run.log) > 5 )) && grep -q FAILED run.log; then
-return 1
-  fi
-
-  go tool dist test -v -v -v -run=^cgo_test$
-  go tool dist test -v -v -v -run=^race$
-}
-
-package() {
-  cd $pkgbase
-
-  install -d "$pkgdir/usr/bin" "$pkgdir/usr/lib/go" "$pkgdir/usr/share/doc/go"
-  cp -a bin pkg src lib "$pkgdir/usr/lib/go"
-  cp -r doc/* "$pkgdir/usr/share/doc/go"
-
-  ln -sf /usr/lib/go/bin/go "$pkgdir/usr/bin/go"
-  ln -sf /usr/lib/go/bin/gofmt "$pkgdir/usr/bin/gofmt"
-  ln -sf /usr/share/doc/go "$pkgdir/usr/lib/go/doc"
-
-  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/go/LICENSE"
-  install -Dm644 VERSION "$pkgdir/usr/lib/go/VERSION"
-
-  rm -rf "$pkgdir/usr/lib/go/pkg/bootstrap"
-  rm -rf "$pkgdir/usr/lib/go/pkg/tool/*/api"
-}

Copied: go/repos/extra-i686/PKGBUILD (from rev 293781, go/trunk/PKGBUILD)
===
--- extra-i686/PKGBUILD (rev 0)
+++ extra-i686/PKGBUILD 2017-04-21 07:09:23 UTC (rev 293782)
@@ -0,0 +1,69 @@
+# $Id$
+# Maintainer: Bartłomiej Piotrowski 
+
+pkgname=go
+epoch=2
+pkgver=1.8.1
+pkgrel=2
+pkgdesc='Core compiler tools for the Go programming language'
+arch=(i686 x86_64)
+url='http://golang.org/'
+license=(BSD)
+makedepends=(git go)
+options=(!strip staticlibs)
+_commit=a4c18f063b6659079ca2848ca217a0587dabc001
+source=(git+https://go.googlesource.com/go#commit=$_commit)
+md5sums=('SKIP')
+
+export GOOS=linux
+case "$CARCH" in
+  x86_64) export GOARCH=amd64 ;;
+  i686) export GOARCH=386 GO386=387 ;;
+esac
+export GOROOT_FINAL=/usr/lib/go
+export GOROOT_BOOTSTRAP=/usr/lib/go
+
+build() {
+  export GOROOT="$srcdir/$pkgname"
+  export GOBIN="$GOROOT/bin"
+  export GOPATH="$srcdir/"
+
+  cd $pkgname/src
+  ./make.bash --no-clean
+}
+
+check() {
+  export GOROOT="$srcdir/$pkgname"
+  export GOBIN="$GOROOT/bin"
+  export PATH="$srcdir/$pkgname-$pkgver/bin:$PATH"
+  export GO_TEST_TIMEOUT_SCALE=2
+
+  # The cgo_test and race tests fail via run.bash but not if run manually.
+  # Assume that five "failed" messages are okay and just re-run failed tests.
+  cd $pkgname/src
+  ./run.bash --no-rebuild -v -v -v -k |& tee run.log
+  if (( $(grep -c Failed: run.log) > 5 )) && grep -q FAILED run.log; then
+return 1
+  fi
+
+  go tool dist test -v -v -v -run=^cgo_test$
+  go tool dist test -v -v -v -run=^race$
+}
+
+package() {
+  cd $pkgbase
+
+  install -d "$pkgdir/usr/bin" "$pkgdir/usr/lib/go" "$pkgdir/usr/share/doc/go"
+  cp -a bin pkg src lib misc "$pkgdir/usr/lib/go"
+  cp -r doc/* "$pkgdir/usr/share/doc/go"
+
+  ln -sf /usr/lib/go/bin/go "$pkgdir/usr/bin/go"
+  ln -sf /usr/lib/go/bin/gofmt "$pkgdir/usr/bin/gofmt"
+  ln -sf /usr/share/doc/go "$pkgdir/usr/lib/go/doc"
+
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/go/LICENSE"
+  install -Dm644 VERSION "$pkgdir/usr/lib/go/VERSION"
+
+  rm -rf "$pkgdir/usr/lib/go/pkg/bootstrap"
+  rm -rf "$pkgdir/usr/lib/go/pkg/tool/*/api"
+}

Deleted: extra-x86_64/PKGBUILD

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

2017-04-08 Thread Bartłomiej Piotrowski
Date: Saturday, April 8, 2017 @ 17:26:08
  Author: bpiotrowski
Revision: 292517

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

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

-+
 testing-i686/PKGBUILD   |   69 ++
 testing-x86_64/PKGBUILD |   69 ++
 2 files changed, 138 insertions(+)

Copied: go/repos/testing-i686/PKGBUILD (from rev 292516, go/trunk/PKGBUILD)
===
--- testing-i686/PKGBUILD   (rev 0)
+++ testing-i686/PKGBUILD   2017-04-08 17:26:08 UTC (rev 292517)
@@ -0,0 +1,69 @@
+# $Id$
+# Maintainer: Bartłomiej Piotrowski 
+
+pkgname=go
+epoch=2
+pkgver=1.8.1
+pkgrel=1
+pkgdesc='Core compiler tools for the Go programming language'
+arch=(i686 x86_64)
+url='http://golang.org/'
+license=(BSD)
+makedepends=(git go)
+options=(!strip staticlibs)
+_commit=a4c18f063b6659079ca2848ca217a0587dabc001
+source=(git+https://go.googlesource.com/go#commit=$_commit)
+md5sums=('SKIP')
+
+export GOOS=linux
+case "$CARCH" in
+  x86_64) export GOARCH=amd64 ;;
+  i686) export GOARCH=386 GO386=387 ;;
+esac
+export GOROOT_FINAL=/usr/lib/go
+export GOROOT_BOOTSTRAP=/usr/lib/go
+
+build() {
+  export GOROOT="$srcdir/$pkgname"
+  export GOBIN="$GOROOT/bin"
+  export GOPATH="$srcdir/"
+
+  cd $pkgname/src
+  ./make.bash --no-clean
+}
+
+check() {
+  export GOROOT="$srcdir/$pkgname"
+  export GOBIN="$GOROOT/bin"
+  export PATH="$srcdir/$pkgname-$pkgver/bin:$PATH"
+  export GO_TEST_TIMEOUT_SCALE=2
+
+  # The cgo_test and race tests fail via run.bash but not if run manually.
+  # Assume that five "failed" messages are okay and just re-run failed tests.
+  cd $pkgname/src
+  ./run.bash --no-rebuild -v -v -v -k |& tee run.log
+  if (( $(grep -c Failed: run.log) > 5 )) && grep -q FAILED run.log; then
+return 1
+  fi
+
+  go tool dist test -v -v -v -run=^cgo_test$
+  go tool dist test -v -v -v -run=^race$
+}
+
+package() {
+  cd $pkgbase
+
+  install -d "$pkgdir/usr/bin" "$pkgdir/usr/lib/go" "$pkgdir/usr/share/doc/go"
+  cp -a bin pkg src lib "$pkgdir/usr/lib/go"
+  cp -r doc/* "$pkgdir/usr/share/doc/go"
+
+  ln -sf /usr/lib/go/bin/go "$pkgdir/usr/bin/go"
+  ln -sf /usr/lib/go/bin/gofmt "$pkgdir/usr/bin/gofmt"
+  ln -sf /usr/share/doc/go "$pkgdir/usr/lib/go/doc"
+
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/go/LICENSE"
+  install -Dm644 VERSION "$pkgdir/usr/lib/go/VERSION"
+
+  rm -rf "$pkgdir/usr/lib/go/pkg/bootstrap"
+  rm -rf "$pkgdir/usr/lib/go/pkg/tool/*/api"
+}

Copied: go/repos/testing-x86_64/PKGBUILD (from rev 292516, go/trunk/PKGBUILD)
===
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2017-04-08 17:26:08 UTC (rev 292517)
@@ -0,0 +1,69 @@
+# $Id$
+# Maintainer: Bartłomiej Piotrowski 
+
+pkgname=go
+epoch=2
+pkgver=1.8.1
+pkgrel=1
+pkgdesc='Core compiler tools for the Go programming language'
+arch=(i686 x86_64)
+url='http://golang.org/'
+license=(BSD)
+makedepends=(git go)
+options=(!strip staticlibs)
+_commit=a4c18f063b6659079ca2848ca217a0587dabc001
+source=(git+https://go.googlesource.com/go#commit=$_commit)
+md5sums=('SKIP')
+
+export GOOS=linux
+case "$CARCH" in
+  x86_64) export GOARCH=amd64 ;;
+  i686) export GOARCH=386 GO386=387 ;;
+esac
+export GOROOT_FINAL=/usr/lib/go
+export GOROOT_BOOTSTRAP=/usr/lib/go
+
+build() {
+  export GOROOT="$srcdir/$pkgname"
+  export GOBIN="$GOROOT/bin"
+  export GOPATH="$srcdir/"
+
+  cd $pkgname/src
+  ./make.bash --no-clean
+}
+
+check() {
+  export GOROOT="$srcdir/$pkgname"
+  export GOBIN="$GOROOT/bin"
+  export PATH="$srcdir/$pkgname-$pkgver/bin:$PATH"
+  export GO_TEST_TIMEOUT_SCALE=2
+
+  # The cgo_test and race tests fail via run.bash but not if run manually.
+  # Assume that five "failed" messages are okay and just re-run failed tests.
+  cd $pkgname/src
+  ./run.bash --no-rebuild -v -v -v -k |& tee run.log
+  if (( $(grep -c Failed: run.log) > 5 )) && grep -q FAILED run.log; then
+return 1
+  fi
+
+  go tool dist test -v -v -v -run=^cgo_test$
+  go tool dist test -v -v -v -run=^race$
+}
+
+package() {
+  cd $pkgbase
+
+  install -d "$pkgdir/usr/bin" "$pkgdir/usr/lib/go" "$pkgdir/usr/share/doc/go"
+  cp -a bin pkg src lib "$pkgdir/usr/lib/go"
+  cp -r doc/* "$pkgdir/usr/share/doc/go"
+
+  ln -sf /usr/lib/go/bin/go "$pkgdir/usr/bin/go"
+  ln -sf /usr/lib/go/bin/gofmt "$pkgdir/usr/bin/gofmt"
+  ln -sf /usr/share/doc/go "$pkgdir/usr/lib/go/doc"
+
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/go/LICENSE"
+  install -Dm644 VERSION "$pkgdir/usr/lib/go/VERSION"
+
+  rm -rf "$pkgdir/usr/lib/go/pkg/bootstrap"
+  rm -rf "$pkgdir/usr/lib/go/pkg/tool/*/api"
+}


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

2017-03-08 Thread Bartłomiej Piotrowski
Date: Wednesday, March 8, 2017 @ 18:13:57
  Author: bpiotrowski
Revision: 290147

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

Added:
  go/repos/extra-i686/
  go/repos/extra-i686/PKGBUILD
(from rev 290146, go/trunk/PKGBUILD)
  go/repos/extra-x86_64/
  go/repos/extra-x86_64/PKGBUILD
(from rev 290146, go/trunk/PKGBUILD)

---+
 extra-i686/PKGBUILD   |  186 
 extra-x86_64/PKGBUILD |  186 
 2 files changed, 372 insertions(+)

Copied: go/repos/extra-i686/PKGBUILD (from rev 290146, go/trunk/PKGBUILD)
===
--- extra-i686/PKGBUILD (rev 0)
+++ extra-i686/PKGBUILD 2017-03-08 18:13:57 UTC (rev 290147)
@@ -0,0 +1,186 @@
+# $Id$
+# Maintainer: Alexander F Rødseth 
+# Maintainer: Pierre Neidhardt 
+# Contributor: Vesa Kaihlavirta 
+# Contributor: Rémy Oudompheng 
+# Contributor: Andres Perera 
+# Contributor: Matthew Bauer 
+# Contributor: Christian Himpel 
+# Contributor: Mike Rosset 
+# Contributor: Daniel YC Lin 
+# Contributor: John Luebs 
+
+pkgname=('go' 'go-tools')
+epoch=2
+pkgver=1.8
+pkgrel=1
+arch=('x86_64' 'i686')
+url='http://golang.org/'
+license=('BSD')
+makedepends=('inetutils' 'git' 'go')
+options=('!strip' 'staticlibs')
+source=("$pkgname-$pkgver::git+https://go.googlesource.com/go#tag=$pkgname$pkgver";)
+md5sums=('SKIP')
+_gourl=golang.org/x/tools/cmd
+
+build() {
+  cd "$pkgname-$pkgver/src"
+
+  export GOROOT="$srcdir/$pkgname-$pkgver"
+  export GOBIN="$GOROOT/bin"
+  export GOPATH="$srcdir/"
+  export GOROOT_FINAL=/usr/lib/go
+  export GOROOT_BOOTSTRAP=/usr/lib/go
+
+  #
+  # Arch Linux normally does not enable SSE2 for i686 because of older CPUs.
+  #
+  # However, exceptions are made for:
+  #  * Chromium, which is not expected to be used on older i686 CPUs
+  #  * Julia, which requires SSE2
+  #
+  # Go is so slow that it is unusable on i686 when SSE2 is not enabled,
+  # so I am also making an exception for Go.
+  #
+  # If you really want to build Go without SSE2 support, just uncomment the
+  # following export and rebuild:
+  #
+  # export GO386=387
+  #
+
+  # Crosscompilation for various platforms. This is not strictly required as 
the
+  # compiler can generate libraries on the fly. Prebuilding the libs speeds up
+  # crosscompilation time.
+  #
+  # for os in darwin freebsd linux windows; do
+  #   for arch in 386 amd64 arm; do
+  # export GOOS="$os"
+  # export GOARCH="$arch"
+  # bash make.bash --no-clean
+  #   done
+  # done
+
+  export GOOS=linux
+  case "$CARCH" in
+  x86_64) export GOARCH=amd64 ;;
+  i686) export GOARCH=386 ;;
+  esac
+
+  bash make.bash --no-clean
+
+  # System-wide tools
+  for tool in godex godoc goimports gomvpkg gorename gotype; do
+$GOROOT/bin/go get -d golang.org/x/tools/cmd/$tool
+$GOROOT/bin/go build -v -x -o $GOPATH/bin/$tool $_gourl/$tool
+  done
+
+  # Distribution tools
+  for tool in benchcmp bundle callgraph digraph eg fiximports guru 
html2article present ssadump stress stringer ; do
+$GOROOT/bin/go get -d golang.org/x/tools/cmd/$tool
+$GOROOT/bin/go build -v -x -o $GOPATH/pkg/tool/${GOOS}_$GOARCH/$tool 
golang.org/x/tools/cmd/$tool
+  done
+}
+
+check() {
+  cd "$pkgname-$pkgver"
+
+  #export GO386=387
+
+  export GOOS=linux
+  case "$CARCH" in
+x86_64) GOARCH=amd64 ;;
+i686) GOARCH=386 ;;
+  esac
+
+  export GOROOT="$srcdir/$pkgname-$pkgver"
+  export GOBIN="$GOROOT/bin"
+  export PATH="$srcdir/$pkgname-$pkgver/bin:$PATH"
+  export GOROOT_BOOTSTRAP=/usr/lib/go
+
+  for tool in goimports gomvpkg gorename gotype \
+benchcmp bundle callgraph digraph eg fiximports guru html2article present 
ssadump stress stringer; do
+GOPATH="$srcdir" $GOROOT/bin/go test -v -x $_gourl/$tool
+  done
+
+  # TestSimpleMulticastListener will fail in standard chroot
+  cd src && bash run.bash --no-rebuild || true
+}
+
+package_go() {
+  pkgdesc='Compiler and tools for the Go programming language from Google'
+  optdepends=('mercurial: for fetching sources from mercurial repositories'
+  'git: for fetching sources from git repositories'
+  'bzr: for fetching sources from bazaar repositories'
+  'subversion: for fetching sources from subversion repositories'
+  'go-tools: doc, goimports, gorename, and other tools.')
+
+  cd "$pkgname-$pkgver"
+
+  export GOROOT="$srcdir/$pkgname-$pkgver"
+  export GOBIN="$GOROOT/bin"
+  export GOROOT_BOOTSTRAP=/usr/lib/go
+
+  case "$CARCH" in
+  x86_64) GOARCH=amd64 ;;
+  i686) GOARCH=386 ;;
+  esac
+
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/go/LICENSE"
+
+  mkdir -p 
"$pkgdir/usr/"{share/go,lib/go,lib/go/pkg,lib/go/src,lib/go/site/src}
+
+  cp -r doc misc -t "$pkgdir/usr/share/go"
+  ln -s /usr/share/go/doc "$pkgdir/usr/lib/go/doc"
+  cp -a bin "$pkgdir/usr"
+  cp -a pkg/{include,linux_$GOARCH,tool} "$pkgdir/usr/lib/