community/go to 1.1.2-3

This commit is contained in:
Kevin Mihelich 2013-10-30 15:09:58 +00:00
parent ad5c779026
commit 6c635e5fef

View file

@ -14,14 +14,14 @@
pkgname=go
pkgver=1.1.2
pkgrel=2
pkgrel=3
epoch=2
pkgdesc='Compiler and tools for the Go programming language from Google'
url='http://golang.org/'
license=('custom')
depends=('perl' 'gawk')
makedepends=('inetutils')
options=('!strip')
options=('!strip' 'staticlibs')
install="$pkgname.install"
backup=('usr/lib/go/bin')
source=("http://go.googlecode.com/files/${pkgname}$pkgver.src.tar.gz"
@ -30,7 +30,7 @@ sha256sums=('56f384c973e58c098ec462bcd892a7c1166b9a392461970ddb22d57ed4d495af'
'36202a833faeb8ea10760557a1e221025288480bdeebf776c8b610014aadc181')
build() {
cd "$srcdir/$pkgname/src"
cd "$pkgname/src"
[ "$CARCH" == 'arm' ] && export GOARM=5
[ "$CARCH" == 'armv6h' ] && export GOARM=6
@ -44,7 +44,7 @@ build() {
}
check() {
cd "$srcdir/$pkgname"
cd "$pkgname"
[ "$CARCH" == 'arm' ] && export GOARM=5
[ "$CARCH" == 'armv6h' ] && export GOARM=6
@ -54,12 +54,12 @@ check() {
export GOROOT="$srcdir/$pkgname"
export PATH="$srcdir/$pkgname/bin:$PATH"
# TestSimpleMulticastListener will fail in standard chroot.
# TestSimpleMulticastListener will fail in standard chroot
cd src && bash run.bash --no-rebuild || true
}
package() {
cd "$srcdir/$pkgname"
cd "$pkgname"
export GOROOT="$srcdir/$pkgname"
export GOROOT="$srcdir/$pkgname"