community/go to 1.11.5-2

This commit is contained in:
Kevin Mihelich 2019-01-27 17:46:55 +00:00
parent 98e75eda6a
commit ffd816ad2e

View file

@ -19,7 +19,7 @@ pkgbase=go
pkgname=(go go-pie)
epoch=2
pkgver=1.11.5
pkgrel=1
pkgrel=2
arch=(x86_64)
url='https://golang.org/'
license=(BSD)
@ -50,7 +50,6 @@ prepare() {
build() {
export GOPATH="$srcdir/"
export GO_GCFLAGS="-trimpath=$GOPATH"
for _pkgname in ${pkgname[@]}; do
export GOROOT="$srcdir/$_pkgname"
@ -109,6 +108,11 @@ package_go-pie() {
conflicts=(go)
_package $pkgname
# linux_amd64 is essentially the content of linux_amd64_shared, however there might
# be cases where the user could generate the _shared directory as it's missing in go-pie.
# Make sure it exists without rebuilding std with -buildmode=pie.
cp -a "$pkgdir/usr/lib/go/pkg/linux_${GOARCH}/" "$pkgdir/usr/lib/go/pkg/linux_${GOARCH}_shared"
}
# vim: ts=2 sw=2 et