mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-03-19 00:21:40 +00:00
community/go to 1.4.2-2
This commit is contained in:
parent
45f06332fe
commit
46439f268e
2 changed files with 10 additions and 4 deletions
|
@ -17,7 +17,7 @@
|
|||
pkgname=go
|
||||
epoch=2
|
||||
pkgver=1.4.2
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc='Compiler and tools for the Go programming language from Google'
|
||||
url='http://golang.org/'
|
||||
license=('custom')
|
||||
|
@ -49,7 +49,7 @@ build() {
|
|||
|
||||
$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
|
||||
for tool in vet cover callgraph; do
|
||||
$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
|
||||
|
@ -102,7 +102,7 @@ package() {
|
|||
|
||||
# Fix for FS#32813
|
||||
find "$pkgdir" -type f -name sql.go -exec chmod -x {} \;
|
||||
|
||||
|
||||
# Remove all executable source files
|
||||
find "$pkgdir/usr/lib/go/src" -type f -executable -delete
|
||||
|
||||
|
|
|
@ -8,8 +8,14 @@ post_install() {
|
|||
echo ' mkdir ~/go'
|
||||
echo ' export GOPATH=~/go'
|
||||
echo ' export PATH=$PATH:~/go/bin'
|
||||
echo ' go get code.google.com/p/go-tour/gotour'
|
||||
echo ' go get golang.org/x/tour/gotour'
|
||||
echo
|
||||
post_upgrade
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
# This is needed to avoid problems like FS#41561 and FS#44099
|
||||
go install std 2> /dev/null || return 0
|
||||
}
|
||||
|
||||
# vim:set ts=2 sw=2 et:
|
||||
|
|
Loading…
Reference in a new issue