diff options
Diffstat (limited to 'community/go')
-rw-r--r-- | community/go/PKGBUILD | 23 | ||||
-rw-r--r-- | community/go/go.install | 13 | ||||
-rw-r--r-- | community/go/go.sh | 1 |
3 files changed, 30 insertions, 7 deletions
diff --git a/community/go/PKGBUILD b/community/go/PKGBUILD index d3bbcd4c0..56e9c03db 100644 --- a/community/go/PKGBUILD +++ b/community/go/PKGBUILD @@ -1,4 +1,4 @@ -# $Id: PKGBUILD 104859 2014-01-27 16:24:41Z arodseth $ +# $Id: PKGBUILD 105906 2014-02-18 23:59:49Z 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.2 -pkgrel=2 +pkgrel=3 epoch=2 pkgdesc='Compiler and tools for the Go programming language from Google' arch=('x86_64' 'i686') @@ -19,16 +19,22 @@ license=('custom') depends=('perl' 'gawk') makedepends=('inetutils') options=('!strip' 'staticlibs') -optdepends=('liteide: IDE for editing and building projects written in Go') +optdepends=('liteide: IDE for editing and building projects written in Go' + 'mercurial: Version control system written in Python' + 'git: Version control system written in C') 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") - sha256sums=('1252ca0aa0a96d53c0592fbc4ea9c9ff5c6b588169c92e08d06da9d89d9d91f2') + source=("http://go.googlecode.com/files/${pkgname}$pkgver.linux-amd64.tar.gz" + 'go.sh') + sha256sums=('1252ca0aa0a96d53c0592fbc4ea9c9ff5c6b588169c92e08d06da9d89d9d91f2' + 'b6209904c88bde96efcac846c267e308e4dc39c8a45f2690204c2175de4b9b0a') else - source=("http://go.googlecode.com/files/${pkgname}$pkgver.linux-386.tar.gz") - sha256sums=('3f51aacc7af60c520fe1071f3cb1d9ceee5db0e8fdfb7168a73e12fd7603e651') + source=("http://go.googlecode.com/files/${pkgname}$pkgver.linux-386.tar.gz" + 'go.sh') + sha256sums=('3f51aacc7af60c520fe1071f3cb1d9ceee5db0e8fdfb7168a73e12fd7603e651' + 'b6209904c88bde96efcac846c267e308e4dc39c8a45f2690204c2175de4b9b0a') fi build() { @@ -129,6 +135,9 @@ package() { install -Dm644 src/pkg/runtime/cgocall.h \ "$pkgdir/usr/lib/go/src/pkg/runtime/cgocall.h" + # In order to make godoc work, see FS#38597 + install -Dm755 "$srcdir/$pkgname.sh" "$pkgdir/etc/profile.d/$pkgname.sh" + # This is to make go get code.google.com/p/go-tour/gotour and # then running the gotour executable work out of the box. ln -sf /usr/bin "$pkgdir/usr/lib/go/bin" diff --git a/community/go/go.install b/community/go/go.install index 286aaf9dd..2f6482620 100644 --- a/community/go/go.install +++ b/community/go/go.install @@ -8,6 +8,19 @@ post_install() { echo ' export PATH=$PATH:~/go/bin' echo ' go get code.google.com/p/go-tour/gotour' echo + echo 'For adding useful go tools:' + echo + echo ' go get code.google.com/p/go.tools/cmd/benchcmp' + echo ' go get code.google.com/p/go.tools/cmd/cover' + echo ' go get code.google.com/p/go.tools/cmd/godoc' + echo ' go get code.google.com/p/go.tools/cmd/goimports' + echo ' go get code.google.com/p/go.tools/cmd/gotype' + echo ' go get code.google.com/p/go.tools/cmd/html2article' + echo ' go get code.google.com/p/go.tools/cmd/ssadump' + echo ' go get code.google.com/p/go.tools/cmd/vet' + echo + echo '#go-nuts at irc.freenode.net may provide more answers.' + echo } # vim:set ts=2 sw=2 et: diff --git a/community/go/go.sh b/community/go/go.sh new file mode 100644 index 000000000..8393dc8d2 --- /dev/null +++ b/community/go/go.sh @@ -0,0 +1 @@ +export GOROOT=/usr/lib/go |