summaryrefslogtreecommitdiff
path: root/community/go
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-04-02 00:01:14 +0000
committerroot <root@rshg054.dnsready.net>2012-04-02 00:01:14 +0000
commit8ebbe4e4befac1396a153b356fc9793655dde4ff (patch)
treeb957bcef566f4da47b8d4a406c64837ec6e3b2e7 /community/go
parent939efb693a8b362edc0c6ccba62c5ce54fb501af (diff)
Mon Apr 2 00:01:14 UTC 2012
Diffstat (limited to 'community/go')
-rw-r--r--community/go/PKGBUILD22
-rw-r--r--community/go/go5
2 files changed, 18 insertions, 9 deletions
diff --git a/community/go/PKGBUILD b/community/go/PKGBUILD
index 03bbc4b5a..ea5fafe3f 100644
--- a/community/go/PKGBUILD
+++ b/community/go/PKGBUILD
@@ -1,5 +1,6 @@
-# $Id: PKGBUILD 68608 2012-03-29 13:28:45Z arodseth $
+# $Id: PKGBUILD 68691 2012-03-31 19:33:32Z arodseth $
# Maintainer: Vesa Kaihlavirta <vegai@iki.fi>
+# Maintainer: Alexander Rødseth <rodseth@gmail.com>
# Contributor: Andres Perera <andres87p gmail>
# Contributor: Matthew Bauer <mjbauer95@gmail.com>
# Contributor: Christian Himpel <chressie at gmail dot com>
@@ -7,34 +8,34 @@
pkgname=go
pkgver=1
-pkgrel=2
+pkgrel=3
epoch=2
pkgdesc='Google Go compiler and tools (release version)'
-arch=('i686' 'x86_64')
+arch=('x86_64' 'i686')
url="http://golang.org/"
license=('custom')
depends=('perl' 'ed' 'gawk')
makedepends=('mercurial' 'inetutils')
options=('!strip' '!emptydirs')
-install=$pkgname.install
-source=($pkgname.sh)
-md5sums=('e7087d190fd519db3be5adb3a51194cc')
+source=("$pkgname"
+ "$pkgname.sh")
+md5sums=('fb4d2508c44b3823e05ed360c2976322'
+ 'e7087d190fd519db3be5adb3a51194cc')
build() {
_hgroot="https://go.googlecode.com/hg/"
_hgrepo="release"
cd "$srcdir"
- msg "Connecting to Mercurial server...."
- if [ -d $_hgrepo ] ; then
+ msg "Connecting to Mercurial server...."
+ if [[ -d $_hgrepo ]] ; then
cd $_hgrepo
hg pull -u
msg "The local files are updated."
else
hg clone $_hgroot $_hgrepo
fi
-
msg "Mercurial checkout done or server timeout"
rm -rf "$srcdir/$_hgrepo-build"
@@ -91,6 +92,9 @@ package() {
$pkgdir/usr/lib/go/src/pkg/runtime/cgocall.h
install $srcdir/go.sh $pkgdir/etc/profile.d/
+
+ mv "$pkgdir/usr/bin/go" "$pkgdir/usr/bin/go.elf"
+ install -Dm755 "$srcdir/go" "$pkgdir/usr/bin/go"
}
# vim:set ts=2 sw=2 et:
diff --git a/community/go/go b/community/go/go
new file mode 100644
index 000000000..c284ec45c
--- /dev/null
+++ b/community/go/go
@@ -0,0 +1,5 @@
+#!/bin/sh
+if [[ -z $GOROOT ]]; then
+ export GOROOT=/usr/lib/go
+fi
+/usr/bin/go.elf "$@"