summaryrefslogtreecommitdiff
path: root/community/go
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-10-31 01:12:24 -0700
committerroot <root@rshg054.dnsready.net>2013-10-31 01:12:24 -0700
commitb2a6f1b28b7fa31088cab9a90b0f5ab97948534d (patch)
treeafa7b467e44b704b69c66862852a8c3118b8e308 /community/go
parent7c151ac5589d3dbef5972f69a62b847ecf565bfa (diff)
Thu Oct 31 01:09:50 PDT 2013
Diffstat (limited to 'community/go')
-rw-r--r--community/go/PKGBUILD22
1 files changed, 13 insertions, 9 deletions
diff --git a/community/go/PKGBUILD b/community/go/PKGBUILD
index 674f2de25..8515479de 100644
--- a/community/go/PKGBUILD
+++ b/community/go/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 96615 2013-09-02 10:55:16Z arodseth $
+# $Id: PKGBUILD 99613 2013-10-30 14:46:57Z arodseth $
# Maintainer: Vesa Kaihlavirta <vegai@iki.fi>
# Maintainer: Alexander Rødseth <rodseth@gmail.com>
# Contributor: Rémy Oudompheng <remy@archlinux.org>
@@ -10,7 +10,7 @@
pkgname=go
pkgver=1.1.2
-pkgrel=2
+pkgrel=3
epoch=2
pkgdesc='Compiler and tools for the Go programming language from Google'
arch=('x86_64' 'i686')
@@ -18,7 +18,7 @@ url='http://golang.org/'
license=('custom')
depends=('perl' 'gawk')
makedepends=('inetutils')
-options=('!strip')
+options=('!strip' 'staticlibs')
install="$pkgname.install"
backup=('usr/lib/go/bin')
@@ -35,12 +35,16 @@ else
fi
build() {
- cd "$srcdir/$pkgname/src"
+ cd "$pkgname/src"
export GOROOT_FINAL=/usr/lib/go
- # We don't support SSE2 for i686, since many i686 CPUs don't have that.
- # Build this package manually, build Go from AUR or use x86_64 instead.
+ #
+ # Arch Linux doesn't support SSE2 for i686.
+ #
+ # Use "go-sse2" from AUR if you have am i686 CPU that supports SSE2.
+ # It is highly likely that it does, and the SSE2 version is _a lot_ faster.
+ #
export GO386=387
# Enable ARM crosscompilation for linux
@@ -59,7 +63,7 @@ build() {
}
check() {
- cd "$srcdir/$pkgname"
+ cd "$pkgname"
export GO386=387
@@ -73,12 +77,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"
install -Dm644 LICENSE \
"$pkgdir/usr/share/licenses/go/LICENSE"