mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
extra/go to 1.9.2-3
This commit is contained in:
parent
842a835e93
commit
1811ff2825
1 changed files with 11 additions and 8 deletions
|
@ -8,17 +8,15 @@ pkgbase=go
|
|||
pkgname=(go go-pie)
|
||||
epoch=2
|
||||
pkgver=1.9.2
|
||||
pkgrel=2
|
||||
arch=(i686 x86_64)
|
||||
pkgrel=3
|
||||
arch=(x86_64)
|
||||
url='http://golang.org/'
|
||||
license=(BSD)
|
||||
makedepends=(git go)
|
||||
options=(!strip staticlibs)
|
||||
_commit=2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9 # tags/go1.9.2
|
||||
source=(git+https://go.googlesource.com/go#commit=$_commit
|
||||
source=(https://storage.googleapis.com/golang/go$pkgver.src.tar.gz
|
||||
default-buildmode-pie.patch)
|
||||
md5sums=('SKIP'
|
||||
'4feaf3d9028fff473d5a365389ced4c9')
|
||||
sha256sums=('665f184bf8ac89986cfd5a4460736976f60b57df6b320ad71ad4cef53bb143dc'
|
||||
'fd0055504e4175c1f444816636dfb53fc0ddee991fa2696bb64b087130bba96d')
|
||||
|
||||
export GOOS=linux
|
||||
case "$CARCH" in
|
||||
|
@ -40,13 +38,17 @@ prepare() {
|
|||
}
|
||||
|
||||
build() {
|
||||
export GOBIN="$GOROOT/bin"
|
||||
export GOPATH="$srcdir/"
|
||||
|
||||
for _pkgname in ${pkgname[@]}; do
|
||||
export GOROOT="$srcdir/$_pkgname"
|
||||
export GOBIN="$GOROOT/bin"
|
||||
|
||||
cd "$srcdir/$_pkgname/src"
|
||||
./make.bash --no-clean
|
||||
|
||||
PATH="$GOBIN:$PATH" go install -buildmode=shared std
|
||||
PATH="$GOBIN:$PATH" go install -race std
|
||||
done
|
||||
}
|
||||
|
||||
|
@ -62,6 +64,7 @@ check() {
|
|||
}
|
||||
|
||||
_package() {
|
||||
options=(!strip staticlibs)
|
||||
cd "$srcdir/$1"
|
||||
|
||||
install -d "$pkgdir/usr/bin" "$pkgdir/usr/lib/go" "$pkgdir/usr/share/doc/go"
|
||||
|
|
Loading…
Reference in a new issue