mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
community/go to 1.2.1-2
This commit is contained in:
parent
e36912aba9
commit
e0ebea285b
1 changed files with 12 additions and 3 deletions
|
@ -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 \
|
||||
|
|
Loading…
Reference in a new issue