community/go to 1.4-1

This commit is contained in:
Kevin Mihelich 2014-12-12 01:48:23 +00:00
parent e2a3dd5a85
commit e7d462f88c
2 changed files with 18 additions and 32 deletions

View file

@ -16,13 +16,13 @@
pkgname=go
epoch=2
pkgver=1.3.3
pkgrel=2
pkgver=1.4
pkgrel=1
pkgdesc='Compiler and tools for the Go programming language from Google'
url='http://golang.org/'
license=('custom')
depends=('perl' 'gawk')
makedepends=('inetutils' 'mercurial')
makedepends=('inetutils' 'mercurial' 'git')
options=('!strip' 'staticlibs')
optdepends=('mercurial: for fetching sources from mercurial repositories'
'git: for fetching sources from git repositories'
@ -48,11 +48,11 @@ build() {
bash make.bash
$GOROOT/bin/go get -d code.google.com/p/go.tools/cmd/godoc
$GOROOT/bin/go build -o $srcdir/godoc code.google.com/p/go.tools/cmd/godoc
$GOROOT/bin/go get -d golang.org/x/tools/cmd/godoc
$GOROOT/bin/go build -o $srcdir/godoc golang.org/x/tools/cmd/godoc
for tool in vet cover; do
$GOROOT/bin/go get -d code.google.com/p/go.tools/cmd/${tool}
$GOROOT/bin/go build -o $GOROOT/pkg/tool/${GOOS}_${GOARCH}/${tool} code.google.com/p/go.tools/cmd/${tool}
$GOROOT/bin/go get -d golang.org/x/tools/cmd/${tool}
$GOROOT/bin/go build -o $GOROOT/pkg/tool/${GOOS}_${GOARCH}/${tool} golang.org/x/tools/cmd/${tool}
done
}
@ -82,21 +82,6 @@ package() {
install -Dm644 LICENSE \
"$pkgdir/usr/share/licenses/go/LICENSE"
install -Dm644 misc/bash/go \
"$pkgdir/usr/share/bash-completion/completions/go"
install -Dm644 misc/emacs/go-mode-load.el \
"$pkgdir/usr/share/emacs/site-lisp/go-mode-load.el"
install -Dm644 misc/emacs/go-mode.el \
"$pkgdir/usr/share/emacs/site-lisp/go-mode.el"
install -Dm644 misc/zsh/go \
"$pkgdir/usr/share/zsh/site-functions/_go"
for f in ftdetect/gofiletype.vim autoload/go/complete.vim indent/go.vim \
ftplugin/go/fmt.vim ftplugin/go/import.vim \
syntax/go.vim syntax/godoc.vim plugin/godoc.vim;
do
install -Dm644 "misc/vim/$f" "$pkgdir/usr/share/vim/vimfiles/$f"
done
mkdir -p \
"$pkgdir/"{etc/profile.d,usr/{share/go,lib/go,lib/go/src,lib/go/site/src}}
@ -105,7 +90,7 @@ package() {
ln -s /usr/share/go/doc "$pkgdir/usr/lib/go/doc"
cp -a bin "$pkgdir/usr"
cp -a pkg "$pkgdir/usr/lib/go"
cp -a $GOROOT/src/pkg "$pkgdir/usr/lib/go/src/"
cp -a "$GOROOT/src" "$pkgdir/usr/lib/go/"
cp -a $GOROOT/src/cmd "$pkgdir/usr/lib/go/src/cmd"
cp -a $GOROOT/src/lib9 "$pkgdir/usr/lib/go/src/"
cp -a $GOROOT/lib "$pkgdir/usr/lib/go/"
@ -120,13 +105,13 @@ package() {
find "$pkgdir" -type f -name sql.go -exec chmod -x {} \;
# Remove all executable source files
find "$pkgdir/usr/lib/go/src/pkg" -type f -executable -delete
find "$pkgdir/usr/lib/go/src" -type f -executable -delete
# Headers for C modules
install -Dm644 src/pkg/runtime/runtime.h \
"$pkgdir/usr/lib/go/src/pkg/runtime/runtime.h"
install -Dm644 src/pkg/runtime/cgocall.h \
"$pkgdir/usr/lib/go/src/pkg/runtime/cgocall.h"
install -Dm644 src/runtime/runtime.h \
"$pkgdir/usr/lib/go/src/runtime/runtime.h"
install -Dm644 src/runtime/cgocall.h \
"$pkgdir/usr/lib/go/src/runtime/cgocall.h"
# This is to make go get code.google.com/p/go-tour/gotour and
# then running the gotour executable work out of the box.

View file

@ -10,13 +10,14 @@ post_install() {
echo ' export PATH=$PATH:~/go/bin'
echo ' go get code.google.com/p/go-tour/gotour'
echo
####
post_upgrade
}
post_upgrade() {
# See FS#41561
go install std
echo
echo 'Shell and editor configuration has been removed from the go'
echo 'package for the 1.4 release. For more information, see:'
echo 'https://github.com/golang/go/wiki/IDEsAndTextEditorPlugins'
echo
}
# vim:set ts=2 sw=2 et: