From 0f003816d9736610ca86ee3e64b64835a7b1b6c9 Mon Sep 17 00:00:00 2001 From: Kevin Mihelich Date: Fri, 21 Aug 2015 00:19:21 +0000 Subject: [PATCH] community/go to 1.5-1.1 --- community/go/PKGBUILD | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/community/go/PKGBUILD b/community/go/PKGBUILD index 4516be468..92ff8b184 100644 --- a/community/go/PKGBUILD +++ b/community/go/PKGBUILD @@ -11,13 +11,11 @@ # ALARM: Kevin Mihelich # - added switches for our architectures -# ALARM: Alexander Rødseth -# - Go 1.1beta2 support pkgname=go epoch=2 pkgver=1.5 -pkgrel=1 +pkgrel=1.1 pkgdesc='Compiler and tools for the Go programming language from Google' url='http://golang.org/' license=('custom') @@ -34,11 +32,12 @@ md5sums=('SKIP') build() { cd "$pkgname-$pkgver/src" + export GOARCH=arm [ "$CARCH" == 'arm' ] && export GOARM=5 [ "$CARCH" == 'armv6h' ] && export GOARM=6 [ "$CARCH" == 'armv7h' ] && export GOARM=7 + [ "$CARCH" == 'aarch64' ] && export GOARCH=arm64 - export GOARCH=arm export GOROOT_FINAL=/usr/lib/go export GOROOT_BOOTSTRAP=/usr/lib/go export GOOS=linux @@ -59,11 +58,12 @@ build() { check() { cd "$pkgname-$pkgver" + export GOARCH=arm [ "$CARCH" == 'arm' ] && export GOARM=5 [ "$CARCH" == 'armv6h' ] && export GOARM=6 [ "$CARCH" == 'armv7h' ] && export GOARM=7 + [ "$CARCH" == 'aarch64' ] && export GOARCH=arm64 - export GOARCH=arm export GOROOT="$srcdir/$pkgname-$pkgver" export GOBIN="$GOROOT/bin" export PATH="$srcdir/$pkgname-$pkgver/bin:$PATH"