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