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

2014-01-27 Thread Alexander Rødseth
Date: Monday, January 27, 2014 @ 17:24:28
  Author: arodseth
Revision: 104858

upgpkg: go 2:1.2-2, fix for FS#38597

Modified:
  go/trunk/PKGBUILD
  go/trunk/go.install
Deleted:
  go/trunk/go.sh

+
 PKGBUILD   |   24 
 go.install |   13 -
 go.sh  |1 -
 3 files changed, 16 insertions(+), 22 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2014-01-27 16:23:54 UTC (rev 104857)
+++ PKGBUILD2014-01-27 16:24:28 UTC (rev 104858)
@@ -10,7 +10,7 @@
 
 pkgname=go
 pkgver=1.2
-pkgrel=1
+pkgrel=2
 epoch=2
 pkgdesc='Compiler and tools for the Go programming language from Google'
 arch=('x86_64' 'i686')
@@ -24,15 +24,11 @@
 backup=('usr/lib/go/bin')
 
 if [ $CARCH == 'x86_64' ]; then
-  source=(http://go.googlecode.com/files/${pkgname}$pkgver.linux-amd64.tar.gz;
-  $pkgname.sh)
-  
sha256sums=('1252ca0aa0a96d53c0592fbc4ea9c9ff5c6b588169c92e08d06da9d89d9d91f2'
-  
'b6209904c88bde96efcac846c267e308e4dc39c8a45f2690204c2175de4b9b0a')
+  
source=(http://go.googlecode.com/files/${pkgname}$pkgver.linux-amd64.tar.gz;)
+  
sha256sums=('1252ca0aa0a96d53c0592fbc4ea9c9ff5c6b588169c92e08d06da9d89d9d91f2')
 else
-  source=(http://go.googlecode.com/files/${pkgname}$pkgver.linux-386.tar.gz;
-  $pkgname.sh)
-  
sha256sums=('3f51aacc7af60c520fe1071f3cb1d9ceee5db0e8fdfb7168a73e12fd7603e651'
-  
'b6209904c88bde96efcac846c267e308e4dc39c8a45f2690204c2175de4b9b0a')
+  source=(http://go.googlecode.com/files/${pkgname}$pkgver.linux-386.tar.gz;)
+  
sha256sums=('3f51aacc7af60c520fe1071f3cb1d9ceee5db0e8fdfb7168a73e12fd7603e651')
 fi
 
 build() {
@@ -41,11 +37,10 @@
   export GOROOT_FINAL=/usr/lib/go
 
   #
-  # Arch Linux doesn't support SSE2 for i686.
+  # Arch Linux doesn't support SSE2 for i686 (to support older CPUs)
+  # The SSE2 version is _a lot_ faster for i686.
+  # This line disables it.
   #
-  # Use go-sse2 from AUR if you have am i686 CPU that supports SSE2.
-  # It is highly likely that it does, and the SSE2 version is _a lot_ faster.
-  #
   export GO386=387
 
   # Enable ARM crosscompilation for linux
@@ -134,9 +129,6 @@
   install -Dm644 src/pkg/runtime/cgocall.h \
 $pkgdir/usr/lib/go/src/pkg/runtime/cgocall.h
 
-  # For packages that source /etc/profile.d/go.sh
-  install -Dm755 $srcdir/$pkgname.sh $pkgdir/etc/profile.d/$pkgname.sh
-
   # This is to make go get code.google.com/p/go-tour/gotour and
   # then running the gotour executable work out of the box.
   ln -sf /usr/bin $pkgdir/usr/lib/go/bin

Modified: go.install
===
--- go.install  2014-01-27 16:23:54 UTC (rev 104857)
+++ go.install  2014-01-27 16:24:28 UTC (rev 104858)
@@ -1,10 +1,13 @@
 post_install() {
   # Friendly message for new users
-  echo Example use of the \go\ tool:
-  echo 'mkdir ~/mygoproject'
-  echo 'export GOPATH=~/mygoproject'
-  echo 'export PATH=\$PATH:\$GOPATH/bin'
-  echo 'go get github.com/codegangsta/martini'
+  echo
+  echo 'Example use of the go tool:'
+  echo
+  echo 'mkdir ~/go'
+  echo 'export GOPATH=~/go'
+  echo 'export PATH=$PATH:~/go/bin'
+  echo 'go get code.google.com/p/go-tour/gotour'
+  echo
 }
 
 # vim:set ts=2 sw=2 et:

Deleted: go.sh
===
--- go.sh   2014-01-27 16:23:54 UTC (rev 104857)
+++ go.sh   2014-01-27 16:24:28 UTC (rev 104858)
@@ -1 +0,0 @@
-export GOROOT=/usr/lib/go



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

2013-12-02 Thread Alexander Rødseth
Date: Monday, December 2, 2013 @ 14:37:17
  Author: arodseth
Revision: 101865

upgpkg: go 2:1.2-1

Modified:
  go/trunk/PKGBUILD
  go/trunk/go.install
  go/trunk/go.sh

+
 PKGBUILD   |8 +---
 go.install |   12 ++--
 go.sh  |1 -
 3 files changed, 11 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2013-12-02 13:32:36 UTC (rev 101864)
+++ PKGBUILD2013-12-02 13:37:17 UTC (rev 101865)
@@ -9,7 +9,7 @@
 # Contributor: Daniel YC Lin dlin...@gmail.com
 
 pkgname=go
-pkgver=1.2rc5
+pkgver=1.2
 pkgrel=1
 epoch=2
 pkgdesc='Compiler and tools for the Go programming language from Google'
@@ -19,6 +19,7 @@
 depends=('perl' 'gawk')
 makedepends=('inetutils')
 options=('!strip' 'staticlibs')
+optdepends=('liteide: IDE for editing and building projects written in Go')
 install=$pkgname.install
 backup=('usr/lib/go/bin')
 
@@ -25,12 +26,12 @@
 if [ $CARCH == 'x86_64' ]; then
   source=(http://go.googlecode.com/files/${pkgname}$pkgver.linux-amd64.tar.gz;
   $pkgname.sh)
-  
sha256sums=('39579e52e312030d82c123fbb6441a6154be348b93c6b4d947d39802c30a5d9e'
+  
sha256sums=('1252ca0aa0a96d53c0592fbc4ea9c9ff5c6b588169c92e08d06da9d89d9d91f2'
   
'b6209904c88bde96efcac846c267e308e4dc39c8a45f2690204c2175de4b9b0a')
 else
   source=(http://go.googlecode.com/files/${pkgname}$pkgver.linux-386.tar.gz;
   $pkgname.sh)
-  
sha256sums=('ed60ebcb519c040957b3a3c0535c8303e2c7aa456d346476d79c7228eda9bfa1'
+  
sha256sums=('3f51aacc7af60c520fe1071f3cb1d9ceee5db0e8fdfb7168a73e12fd7603e651'
   
'b6209904c88bde96efcac846c267e308e4dc39c8a45f2690204c2175de4b9b0a')
 fi
 
@@ -50,6 +51,7 @@
   # Enable ARM crosscompilation for linux
   export GOOS=linux
   export GOARCH=arm
+
   bash make.bash
 
   # Crosscompilation for various platforms (including linux)

Modified: go.install
===
--- go.install  2013-12-02 13:32:36 UTC (rev 101864)
+++ go.install  2013-12-02 13:37:17 UTC (rev 101865)
@@ -1,10 +1,10 @@
 post_install() {
-  # Friendly message to the user
-  echo Example use of the \go\ tool as a user:
-  echo mkdir ~/go
-  echo export GOPATH=~/go
-  echo export PATH=\$PATH:\$GOPATH/bin
-  echo go get website.com/user/module
+  # Friendly message for new users
+  echo Example use of the \go\ tool:
+  echo 'mkdir ~/mygoproject'
+  echo 'export GOPATH=~/mygoproject'
+  echo 'export PATH=\$PATH:\$GOPATH/bin'
+  echo 'go get github.com/codegangsta/martini'
 }
 
 # vim:set ts=2 sw=2 et:

Modified: go.sh
===
--- go.sh   2013-12-02 13:32:36 UTC (rev 101864)
+++ go.sh   2013-12-02 13:37:17 UTC (rev 101865)
@@ -1,2 +1 @@
-export GOPATH=/usr/lib/go/site
 export GOROOT=/usr/lib/go