extra/go to 1.9.2-3

This commit is contained in:
Kevin Mihelich 2017-12-10 14:37:03 +00:00
parent 842a835e93
commit 1811ff2825

View file

@ -8,17 +8,15 @@ pkgbase=go
pkgname=(go go-pie) pkgname=(go go-pie)
epoch=2 epoch=2
pkgver=1.9.2 pkgver=1.9.2
pkgrel=2 pkgrel=3
arch=(i686 x86_64) arch=(x86_64)
url='http://golang.org/' url='http://golang.org/'
license=(BSD) license=(BSD)
makedepends=(git go) makedepends=(git go)
options=(!strip staticlibs) source=(https://storage.googleapis.com/golang/go$pkgver.src.tar.gz
_commit=2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9 # tags/go1.9.2
source=(git+https://go.googlesource.com/go#commit=$_commit
default-buildmode-pie.patch) default-buildmode-pie.patch)
md5sums=('SKIP' sha256sums=('665f184bf8ac89986cfd5a4460736976f60b57df6b320ad71ad4cef53bb143dc'
'4feaf3d9028fff473d5a365389ced4c9') 'fd0055504e4175c1f444816636dfb53fc0ddee991fa2696bb64b087130bba96d')
export GOOS=linux export GOOS=linux
case "$CARCH" in case "$CARCH" in
@ -40,13 +38,17 @@ prepare() {
} }
build() { build() {
export GOBIN="$GOROOT/bin"
export GOPATH="$srcdir/" export GOPATH="$srcdir/"
for _pkgname in ${pkgname[@]}; do for _pkgname in ${pkgname[@]}; do
export GOROOT="$srcdir/$_pkgname" export GOROOT="$srcdir/$_pkgname"
export GOBIN="$GOROOT/bin"
cd "$srcdir/$_pkgname/src" cd "$srcdir/$_pkgname/src"
./make.bash --no-clean ./make.bash --no-clean
PATH="$GOBIN:$PATH" go install -buildmode=shared std
PATH="$GOBIN:$PATH" go install -race std
done done
} }
@ -62,6 +64,7 @@ check() {
} }
_package() { _package() {
options=(!strip staticlibs)
cd "$srcdir/$1" cd "$srcdir/$1"
install -d "$pkgdir/usr/bin" "$pkgdir/usr/lib/go" "$pkgdir/usr/share/doc/go" install -d "$pkgdir/usr/bin" "$pkgdir/usr/lib/go" "$pkgdir/usr/share/doc/go"