aboutsummaryrefslogtreecommitdiffstats
path: root/community
diff options
context:
space:
mode:
authorThomas Boerger <thomas@webhippie.de>2016-05-12 12:05:25 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2016-05-16 13:51:51 +0000
commit61bebe54c08455a4aedad5a35d556bc2c15dd058 (patch)
treed16b023f613730c23882cb88829571e92f09c718 /community
parentdb00ceb9ee5dae8ccc88423d7ddd6ea481f7fbb3 (diff)
downloadaports-61bebe54c08455a4aedad5a35d556bc2c15dd058.tar.bz2
aports-61bebe54c08455a4aedad5a35d556bc2c15dd058.tar.xz
community/go: Add stringer to tools
In order to be able to use the stringer tool within go-based packages I have added it to the list of the go-tools subpackage.
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
}