aboutsummaryrefslogtreecommitdiffstats
path: root/community/go/APKBUILD
diff options
context:
space:
mode:
authorChristine Dodrill <me@christine.website>2017-09-15 07:12:20 +0000
committerSören Tempel <soeren+git@soeren-tempel.net>2017-09-17 14:49:21 +0200
commit6affaf07e4f9eaf149e8ca180528e8e09e036558 (patch)
tree253d8f1fd0aa7f1fcdfbc685cc1b36652132b8d4 /community/go/APKBUILD
parent1b58c9387d3fb498c069f0c6d914dbeb36db1e2e (diff)
downloadaports-6affaf07e4f9eaf149e8ca180528e8e09e036558.tar.bz2
aports-6affaf07e4f9eaf149e8ca180528e8e09e036558.tar.xz
community/go: don't build cross-compilers
Diffstat (limited to 'community/go/APKBUILD')
-rw-r--r--community/go/APKBUILD26
1 files changed, 2 insertions, 24 deletions
diff --git a/community/go/APKBUILD b/community/go/APKBUILD
index 83b24a0770..e2f3ed1880 100644
--- a/community/go/APKBUILD
+++ b/community/go/APKBUILD
@@ -4,7 +4,7 @@ pkgname=go
pkgver=1.9
# This should be the latest commit on the corresponding release branch
_toolsver="5d2fd3ccab986d52112bf301d47a819783339d0e"
-pkgrel=1
+pkgrel=2
pkgdesc="Go programming language compiler"
url="http://www.golang.org/"
arch="all"
@@ -30,8 +30,7 @@ if [ "$CBUILD" = "$CTARGET" ]; then
makedepends="go-bootstrap $makedepends"
provides="go-bootstrap=$pkgver-r$pkgrel"
subpackages="$subpackages $pkgname-tools"
- _gotools="godoc stringer"
- _gocross="darwin freebsd openbsd windows"
+ _gotools="cover godoc stringer"
else
pkgname="go-bootstrap"
makedepends="go $makedepends"
@@ -43,9 +42,6 @@ else
fi
_tooldir="$srcdir"/tools-${_toolsver}
-for os in $_gocross; do
- subpackages="$subpackages $pkgname-cross-${os}:_crosspkg"
-done
case "$CTARGET_ARCH" in
aarch64)export GOARCH="arm64" ;;
@@ -75,12 +71,6 @@ build() {
done
./make.bash
- for os in $_gocross; do
- local hostarch="$GOARCH"
- for arch in "386" "amd64"; do
- GOHOSTARCH=$hostarch GOARCH=$arch GOOS=$os ./make.bash
- done
- done
# copied from bootstrap.bash to fixup cross-built bootstrap go
if [ "$CBUILD" != "$CTARGET" ]; then
@@ -153,18 +143,6 @@ tools() {
done
}
-_crosspkg() {
- local name="$(echo "${subpkgname}" | cut -d '-' -f3)"
- pkgdesc="Go cross compiler for $name"
- depends="$pkgname"
-
- mkdir -p "$subpkgdir"/usr/lib/go/pkg/tool/
- mv "$pkgdir"/usr/lib/go/pkg/tool/${name}_* \
- "$subpkgdir"/usr/lib/go/pkg/tool/
- mv "$pkgdir"/usr/lib/go/pkg/${name}_* \
- "$subpkgdir"/usr/lib/go/pkg/
-}
-
sha512sums="70c4b892b6883fb21fc1a547a2b8d174df8c7aca282a3906e3816b4442b16c5da578b69c19443122a4a45e66fc95d170528d826b70932af09f4afd2a46615d74 go1.9.src.tar.gz
d679873082dbac6a47b7c43ac74c47cb19616fb053a4faa3e6ee78004ece86aa5c432fba3d24c030d47396089d7ec7c6357af5648bd767341056396066ff9a04 go-tools-1.9.tar.gz
ef9da66d76e4698314eaf2aa88cf40a8430a15f8f6cb9ad17ee9d72498ec049b60e63e1ff5acf13a916c5ea365f9d9a282b6f2b06e28de9e3484eb9a3d7dd98e default-buildmode-pie.patch