community/go to 1.2-1

This commit is contained in:
Kevin Mihelich 2013-12-02 15:18:29 +00:00
parent 2db3c103b1
commit e913aa037e
3 changed files with 10 additions and 13 deletions

View file

@ -13,8 +13,8 @@
# - Go 1.1beta2 support
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'
url='http://golang.org/'
@ -22,11 +22,12 @@ 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')
source=("http://go.googlecode.com/files/${pkgname}$pkgver.src.tar.gz"
"$pkgname.sh")
sha256sums=('56f384c973e58c098ec462bcd892a7c1166b9a392461970ddb22d57ed4d495af'
sha256sums=('9ab83fb8eafe39f4204ef0f8e84e5ff7e8f1d533ddb05f51e6dc81503e8c0ae4'
'36202a833faeb8ea10760557a1e221025288480bdeebf776c8b610014aadc181')
build() {

View file

@ -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:

View file

@ -1,2 +1 @@
export GOPATH=/usr/lib/go/site
export GOROOT=/usr/lib/go