From 1152fcb4f636d5acf118113ed3a41629337609a1 Mon Sep 17 00:00:00 2001 From: Kevin Mihelich Date: Wed, 19 Feb 2014 00:51:52 +0000 Subject: [PATCH] community/go to 1.2-3 --- community/go/PKGBUILD | 16 +++++++++++----- community/go/go.install | 13 +++++++++++++ 2 files changed, 24 insertions(+), 5 deletions(-) diff --git a/community/go/PKGBUILD b/community/go/PKGBUILD index 20d992c15..1a967f9a0 100644 --- a/community/go/PKGBUILD +++ b/community/go/PKGBUILD @@ -15,7 +15,7 @@ pkgname=go pkgver=1.2 -pkgrel=2 +pkgrel=3 epoch=2 pkgdesc='Compiler and tools for the Go programming language from Google' url='http://golang.org/' @@ -23,11 +23,15 @@ 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') -source=("http://go.googlecode.com/files/${pkgname}$pkgver.src.tar.gz") -sha256sums=('9ab83fb8eafe39f4204ef0f8e84e5ff7e8f1d533ddb05f51e6dc81503e8c0ae4') +source=("http://go.googlecode.com/files/${pkgname}$pkgver.src.tar.gz" + 'go.sh') +sha256sums=('9ab83fb8eafe39f4204ef0f8e84e5ff7e8f1d533ddb05f51e6dc81503e8c0ae4' + 'b6209904c88bde96efcac846c267e308e4dc39c8a45f2690204c2175de4b9b0a') build() { cd "$pkgname/src" @@ -111,6 +115,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" @@ -124,5 +131,4 @@ package() { find "$pkgdir/usr/"{lib/go/pkg,bin} -type f -exec touch '{}' + } - # vim:set ts=2 sw=2 et: 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: