community/go to 1.2.1-2

This commit is contained in:
Kevin Mihelich 2014-03-22 15:00:40 +00:00
parent e36912aba9
commit e0ebea285b

View file

@ -7,6 +7,7 @@
# Contributor: Christian Himpel <chressie@gmail.com>
# Contributor: Mike Rosset <mike.rosset@gmail.com>
# Contributor: Daniel YC Lin <dlin.tw@gmail.com>
# Contributor: John Luebs <jkluebs@gmail.com>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - added switches for our architectures
@ -14,9 +15,9 @@
# - Go 1.1beta2 support
pkgname=go
epoch=2
pkgver=1.2.1
pkgrel=1
epoch=2
pkgdesc='Compiler and tools for the Go programming language from Google'
url='http://golang.org/'
license=('custom')
@ -40,11 +41,17 @@ build() {
export GOARCH=arm
export GOROOT_FINAL=/usr/lib/go
export GOOS=linux
export GOPATH="$srcdir/"
export GOROOT="$srcdir/$pkgname-$pkgver"
bash make.bash
# TODO: Find a way to install these tools as well:
#go get code.google.com/p/go.tools/cmd/...
$GOROOT/bin/go get -d code.google.com/p/go.tools/cmd/godoc
$GOROOT/bin/go build -o $srcdir/godoc code.google.com/p/go.tools/cmd/godoc
for tool in vet cover; do
$GOROOT/bin/go get -d code.google.com/p/go.tools/cmd/${tool}
$GOROOT/bin/go build -o $GOROOT/pkg/tool/${GOOS}_${GOARCH}/${tool} code.google.com/p/go.tools/cmd/${tool}
done
}
check() {
@ -67,6 +74,8 @@ package() {
export GOROOT="$srcdir/$pkgname-$pkgver"
install -Dm755 ../godoc "$pkgdir/usr/bin/godoc"
install -Dm644 LICENSE \
"$pkgdir/usr/share/licenses/go/LICENSE"
install -Dm644 misc/bash/go \