mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-02-27 00:10:29 +00:00
community/go to 1.11.5-2
This commit is contained in:
parent
98e75eda6a
commit
ffd816ad2e
1 changed files with 6 additions and 2 deletions
|
@ -19,7 +19,7 @@ pkgbase=go
|
||||||
pkgname=(go go-pie)
|
pkgname=(go go-pie)
|
||||||
epoch=2
|
epoch=2
|
||||||
pkgver=1.11.5
|
pkgver=1.11.5
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
arch=(x86_64)
|
arch=(x86_64)
|
||||||
url='https://golang.org/'
|
url='https://golang.org/'
|
||||||
license=(BSD)
|
license=(BSD)
|
||||||
|
@ -50,7 +50,6 @@ prepare() {
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
export GOPATH="$srcdir/"
|
export GOPATH="$srcdir/"
|
||||||
export GO_GCFLAGS="-trimpath=$GOPATH"
|
|
||||||
|
|
||||||
for _pkgname in ${pkgname[@]}; do
|
for _pkgname in ${pkgname[@]}; do
|
||||||
export GOROOT="$srcdir/$_pkgname"
|
export GOROOT="$srcdir/$_pkgname"
|
||||||
|
@ -109,6 +108,11 @@ package_go-pie() {
|
||||||
conflicts=(go)
|
conflicts=(go)
|
||||||
|
|
||||||
_package $pkgname
|
_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
|
# vim: ts=2 sw=2 et
|
||||||
|
|
Loading…
Reference in a new issue