community/go to 1.2-3

This commit is contained in:
Kevin Mihelich 2014-02-19 00:51:52 +00:00
parent 50b27d904b
commit 1152fcb4f6
2 changed files with 24 additions and 5 deletions

View file

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

View file

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