mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
community/go to 1.5-1
This commit is contained in:
parent
49c33d4aec
commit
fc75109d85
1 changed files with 12 additions and 9 deletions
|
@ -16,12 +16,12 @@
|
|||
|
||||
pkgname=go
|
||||
epoch=2
|
||||
pkgver=1.4.2
|
||||
pkgrel=2
|
||||
pkgver=1.5
|
||||
pkgrel=1
|
||||
pkgdesc='Compiler and tools for the Go programming language from Google'
|
||||
url='http://golang.org/'
|
||||
license=('custom')
|
||||
makedepends=('inetutils' 'git' 'mercurial')
|
||||
makedepends=('inetutils' 'git' 'mercurial' 'go')
|
||||
options=('!strip' 'staticlibs')
|
||||
optdepends=('mercurial: for fetching sources from mercurial repositories'
|
||||
'git: for fetching sources from git repositories'
|
||||
|
@ -40,6 +40,7 @@ build() {
|
|||
|
||||
export GOARCH=arm
|
||||
export GOROOT_FINAL=/usr/lib/go
|
||||
export GOROOT_BOOOTSTRAP=/usr/lib/go
|
||||
export GOOS=linux
|
||||
export GOPATH="$srcdir/"
|
||||
export GOROOT="$srcdir/$pkgname-$pkgver"
|
||||
|
@ -66,6 +67,7 @@ check() {
|
|||
export GOROOT="$srcdir/$pkgname-$pkgver"
|
||||
export GOBIN="$GOROOT/bin"
|
||||
export PATH="$srcdir/$pkgname-$pkgver/bin:$PATH"
|
||||
export GOROOT_BOOOTSTRAP=/usr/lib/go
|
||||
|
||||
# TestSimpleMulticastListener will fail in standard chroot
|
||||
cd src && bash run.bash --no-rebuild || true
|
||||
|
@ -76,6 +78,7 @@ package() {
|
|||
|
||||
export GOROOT="$srcdir/$pkgname-$pkgver"
|
||||
export GOBIN="$GOROOT/bin"
|
||||
export GOROOT_BOOOTSTRAP=/usr/lib/go
|
||||
|
||||
install -Dm755 "$srcdir/godoc" "$pkgdir/usr/bin/godoc"
|
||||
|
||||
|
@ -91,9 +94,9 @@ package() {
|
|||
cp -a pkg "$pkgdir/usr/lib/go"
|
||||
cp -a "$GOROOT/src" "$pkgdir/usr/lib/go/"
|
||||
cp -a $GOROOT/src/cmd "$pkgdir/usr/lib/go/src/cmd"
|
||||
cp -a $GOROOT/src/lib9 "$pkgdir/usr/lib/go/src/"
|
||||
#cp -a $GOROOT/src/lib9 "$pkgdir/usr/lib/go/src/"
|
||||
cp -a $GOROOT/lib "$pkgdir/usr/lib/go/"
|
||||
cp -a $GOROOT/include "$pkgdir/usr/lib/go/"
|
||||
#cp -a $GOROOT/include "$pkgdir/usr/lib/go/"
|
||||
|
||||
install -Dm644 src/Make.* "$pkgdir/usr/lib/go/src"
|
||||
|
||||
|
@ -107,10 +110,10 @@ package() {
|
|||
find "$pkgdir/usr/lib/go/src" -type f -executable -delete
|
||||
|
||||
# Headers for C modules
|
||||
install -Dm644 src/runtime/runtime.h \
|
||||
"$pkgdir/usr/lib/go/src/runtime/runtime.h"
|
||||
install -Dm644 src/runtime/cgocall.h \
|
||||
"$pkgdir/usr/lib/go/src/runtime/cgocall.h"
|
||||
#install -Dm644 src/runtime/runtime.h \
|
||||
# "$pkgdir/usr/lib/go/src/runtime/runtime.h"
|
||||
#install -Dm644 src/runtime/cgocall.h \
|
||||
# "$pkgdir/usr/lib/go/src/runtime/cgocall.h"
|
||||
|
||||
# This is to make go get code.google.com/p/go-tour/gotour and
|
||||
# then running the gotour executable work out of the box.
|
||||
|
|
Loading…
Reference in a new issue