community/go to 1.5-1.1

This commit is contained in:
Kevin Mihelich 2015-08-21 00:19:21 +00:00
parent 75b80c7faf
commit 0f003816d9

View file

@ -11,13 +11,11 @@
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - added switches for our architectures
# ALARM: Alexander Rødseth <rodseth@gmail.com>
# - 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"