git » go-1.20.git » commit 1d0a733

Add support for ARM crosscompiling. Fix FS#30287.

author Alexander Rødseth
2012-06-24 13:42:16 UTC
committer Alexander Rødseth
2012-06-24 13:42:16 UTC
parent 0f97a0211d79bd170c697de19d31a2b35178e2aa

Add support for ARM crosscompiling. Fix FS#30287.

PKGBUILD +4 -2

diff --git a/PKGBUILD b/PKGBUILD
index defb5ae..aa0db76 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -9,7 +9,7 @@
 
 pkgname=go
 pkgver=1.0.2
-pkgrel=1
+pkgrel=2
 epoch=2
 pkgdesc='Google Go compiler and tools'
 arch=('x86_64' 'i686')
@@ -30,8 +30,10 @@ build() {
 
   export GOROOT_FINAL="/usr/lib/go"
   export GOOS=linux
+  export GOARCH=arm
 
-  cd src && bash make.bash
+  cd src
+  bash make.bash
 }
 
 check() {