aboutsummaryrefslogtreecommitdiffstats
path: root/community
diff options
context:
space:
mode:
Diffstat (limited to 'community')
-rw-r--r--community/go/APKBUILD11
1 files changed, 7 insertions, 4 deletions
diff --git a/community/go/APKBUILD b/community/go/APKBUILD
index 2528ed3f44..67d808993d 100644
--- a/community/go/APKBUILD
+++ b/community/go/APKBUILD
@@ -4,7 +4,7 @@ pkgname=go
pkgver=1.6.2
# This should be the latest commit on the corresponding release branch
_toolsver="c887be1b2ebd11663d4bf2fbca508c449172339e"
-pkgrel=1
+pkgrel=2
pkgdesc="Go programming language compiler"
url="http://www.golang.org/"
arch="all"
@@ -23,7 +23,7 @@ source="http://golang.org/dl/go${pkgver}.src.tar.gz
# NOTE: building go for x86 with grsec kernel requires:
# sysctl -w kernel.modify_ldt=1
-_gotools="cover vet godoc"
+_gotools="cover vet godoc stringer"
_gocross="darwin freebsd openbsd windows"
_builddir="$srcdir"/$pkgname
@@ -118,8 +118,11 @@ tools() {
"$pkgdir"/usr/lib/go/pkg/tool/linux_$GOARCH/godoc || return 1
for tool in $_gotools; do
- mv "$pkgdir"/usr/lib/go/pkg/tool/linux_$GOARCH/$tool \
- "$subpkgdir"/usr/lib/go/pkg/tool/linux_$GOARCH/$tool || return 1
+ if test -f "$pkgdir"/usr/lib/go/pkg/tool/linux_$GOARCH/$tool
+ then
+ mv "$pkgdir"/usr/lib/go/pkg/tool/linux_$GOARCH/$tool \
+ "$subpkgdir"/usr/lib/go/pkg/tool/linux_$GOARCH/$tool || return 1
+ fi
done
}