summaryrefslogtreecommitdiff
path: root/community/go
diff options
context:
space:
mode:
Diffstat (limited to 'community/go')
-rw-r--r--community/go/PKGBUILD16
-rw-r--r--community/go/go.install15
-rw-r--r--community/go/go.sh1
3 files changed, 15 insertions, 17 deletions
diff --git a/community/go/PKGBUILD b/community/go/PKGBUILD
index 8515479de..52f9e77a8 100644
--- a/community/go/PKGBUILD
+++ b/community/go/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 99613 2013-10-30 14:46:57Z arodseth $
+# $Id: PKGBUILD 101866 2013-12-02 13:37:29Z arodseth $
# Maintainer: Vesa Kaihlavirta <vegai@iki.fi>
# Maintainer: Alexander Rødseth <rodseth@gmail.com>
# Contributor: Rémy Oudompheng <remy@archlinux.org>
@@ -9,8 +9,8 @@
# Contributor: Daniel YC Lin <dlin.tw@gmail.com>
pkgname=go
-pkgver=1.1.2
-pkgrel=3
+pkgver=1.2
+pkgrel=1
epoch=2
pkgdesc='Compiler and tools for the Go programming language from Google'
arch=('x86_64' 'i686')
@@ -19,19 +19,20 @@ license=('custom')
depends=('perl' 'gawk')
makedepends=('inetutils')
options=('!strip' 'staticlibs')
+optdepends=('liteide: IDE for editing and building projects written in Go')
install="$pkgname.install"
backup=('usr/lib/go/bin')
if [ "$CARCH" == 'x86_64' ]; then
source=("http://go.googlecode.com/files/${pkgname}$pkgver.linux-amd64.tar.gz"
"$pkgname.sh")
- sha256sums=('ad583ff91bd2955fc48d24001785587e3c3b5ce5c09e4971a37028db4c3f6a98'
- '36202a833faeb8ea10760557a1e221025288480bdeebf776c8b610014aadc181')
+ sha256sums=('1252ca0aa0a96d53c0592fbc4ea9c9ff5c6b588169c92e08d06da9d89d9d91f2'
+ 'b6209904c88bde96efcac846c267e308e4dc39c8a45f2690204c2175de4b9b0a')
else
source=("http://go.googlecode.com/files/${pkgname}$pkgver.linux-386.tar.gz"
"$pkgname.sh")
- sha256sums=('56f384c973e58c098ec462bcd892a7c1166b9a392461970ddb22d57ed4d495af'
- '36202a833faeb8ea10760557a1e221025288480bdeebf776c8b610014aadc181')
+ sha256sums=('3f51aacc7af60c520fe1071f3cb1d9ceee5db0e8fdfb7168a73e12fd7603e651'
+ 'b6209904c88bde96efcac846c267e308e4dc39c8a45f2690204c2175de4b9b0a')
fi
build() {
@@ -50,6 +51,7 @@ build() {
# Enable ARM crosscompilation for linux
export GOOS=linux
export GOARCH=arm
+
bash make.bash
# Crosscompilation for various platforms (including linux)
diff --git a/community/go/go.install b/community/go/go.install
index 755f0a442..e0610f3c5 100644
--- a/community/go/go.install
+++ b/community/go/go.install
@@ -1,13 +1,10 @@
-post_upgrade() {
- # Friendly message to the user
- echo "Example use of the \"go\" tool as a user:"
- echo " mkdir ~/go"
- echo " export GOPATH=~/go"
- echo " go get website.com/user/module"
-}
-
post_install() {
- post_upgrade
+ # Friendly message for new users
+ echo "Example use of the \"go\" tool:"
+ echo ' mkdir ~/mygoproject'
+ echo ' export GOPATH=~/mygoproject'
+ echo ' export PATH=\$PATH:\$GOPATH/bin'
+ echo ' go get github.com/codegangsta/martini'
}
# vim:set ts=2 sw=2 et:
diff --git a/community/go/go.sh b/community/go/go.sh
index 51c6e7677..8393dc8d2 100644
--- a/community/go/go.sh
+++ b/community/go/go.sh
@@ -1,2 +1 @@
-export GOPATH=/usr/lib/go/site
export GOROOT=/usr/lib/go