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

Alexander Rødseth arodseth at nymeria.archlinux.org
Thu May 9 15:26:39 UTC 2013


    Date: Thursday, May 9, 2013 @ 17:26:38
  Author: arodseth
Revision: 90222

upgpkg: go 2:1.1rc2-1

Modified:
  go/trunk/PKGBUILD

----------+
 PKGBUILD |   27 ++++++++++++---------------
 1 file changed, 12 insertions(+), 15 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-05-09 15:00:10 UTC (rev 90221)
+++ PKGBUILD	2013-05-09 15:26:38 UTC (rev 90222)
@@ -7,8 +7,11 @@
 # Contributor: Christian Himpel <chressie at gmail.com>
 # Contributor: Mike Rosset <mike.rosset at gmail.com>
 # Contributor: Daniel YC Lin <dlin.tw at gmail.com>
+
+# TODO: Create split packages for the crosscompilation versions as well
+
 pkgname=go
-pkgver=1.1rc1
+pkgver=1.1rc2
 pkgrel=1
 epoch=2
 pkgdesc='Google Go compiler and tools'
@@ -23,13 +26,13 @@
 if [ "$CARCH" == 'x86_64' ]; then
   source=("http://go.googlecode.com/files/${pkgname}$pkgver.linux-amd64.tar.gz"
           "$pkgname.sh")
-  sha256sums=('fc76b716b031d8afba3f3e6bcaca410e8dbf5fb625db5def00fbaaaa960e108c'
+  sha256sums=('b0a1cad4c3e185ef94a0df36e9804a2afe18ed237f764fad25141560d910f31f'
             'a03db71d323ed2794123bb31b5c8ad5febd551c490b5c0b341052c8e5f0ba892')
 else
   source=("http://go.googlecode.com/files/${pkgname}$pkgver.linux-386.tar.gz"
           "$pkgname.sh")
-  sha256sums=('b4eb8d9b55ae4a78c86213fa968755163ab3a8efa3f5c9f3a472b182b9d9a52e'
-              'a03db71d323ed2794123bb31b5c8ad5febd551c490b5c0b341052c8e5f0ba892')
+  sha256sums=('d111b7a503a1b7bb0804128c014a8811411747e61346739c4866a8eef297b731'
+            'a03db71d323ed2794123bb31b5c8ad5febd551c490b5c0b341052c8e5f0ba892')
 fi
 
 build() {
@@ -42,12 +45,12 @@
   export GOARCH=arm
   bash make.bash
 
-  # Crosscompilation for other platforms too (including linux i686 and x86_64)
-  for os in linux; do # also possible: darwin freebsd windows
+  # Crosscompilation for various platforms (including linux)
+  for os in linux; do # darwin freebsd windows; do
     for arch in amd64 386; do
-      export GOOS=$os
-      export GOARCH=$arch
-      bash make.bash
+      export GOOS="$os"
+      export GOARCH="$arch"
+      bash make.bash --no-clean
     done
   done
 }
@@ -55,14 +58,11 @@
 check() {
   cd "$srcdir/$pkgname"
 
-  # Only test for linux and the architecture we're on
   export GOOS=linux
   if [ "$CARCH" == 'x86_64' ]; then
     export GOARCH=amd64
   elif [ "$CARCH" == 'i686' ]; then
     export GOARCH=386
-  else
-    export GOARCH=arm
   fi
 
   export GOROOT="$srcdir/$pkgname"
@@ -135,9 +135,6 @@
   rm -f $pkgdir/usr/share/go/doc/articles/wiki/get.bin
 
   install -Dm644 VERSION $pkgdir/usr/lib/go/VERSION
-
-  # Clean up
-  #rm -r "$pkgdir/usr/bin/linux_arm"
 }
 
 # vim:set ts=2 sw=2 et:




More information about the arch-commits mailing list