summaryrefslogtreecommitdiff
path: root/community/go/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/go/PKGBUILD')
-rw-r--r--community/go/PKGBUILD22
1 files changed, 13 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: