community/go to 1.17.4-1

This commit is contained in:
Kevin Mihelich 2021-12-03 14:59:09 +00:00
parent f813501d4f
commit 70b3d33929

View file

@ -1,4 +1,5 @@
# Maintainer: Morten Linderud <foxboron@archlinux.org> # Maintainer: Morten Linderud <foxboron@archlinux.org>
# Contributor: Daniel Martí <mvdan@mvdan.cc>
# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org> # Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
# Contributor: Alexander F. Rødseth <xyproto@archlinux.org> # Contributor: Alexander F. Rødseth <xyproto@archlinux.org>
# Contributor: Pierre Neidhardt <ambrevar@gmail.com> # Contributor: Pierre Neidhardt <ambrevar@gmail.com>
@ -16,7 +17,7 @@
pkgname=go pkgname=go
epoch=2 epoch=2
pkgver=1.17.3 pkgver=1.17.4
pkgrel=1 pkgrel=1
pkgdesc='Core compiler tools for the Go programming language' pkgdesc='Core compiler tools for the Go programming language'
arch=(x86_64) arch=(x86_64)
@ -28,7 +29,7 @@ provides=(go-pie)
options=(!strip staticlibs) options=(!strip staticlibs)
source=(https://storage.googleapis.com/golang/go$pkgver.src.tar.gz{,.asc}) source=(https://storage.googleapis.com/golang/go$pkgver.src.tar.gz{,.asc})
validpgpkeys=('EB4C1BFD4F042F6DDDCCEC917721F63BD38B4796') validpgpkeys=('EB4C1BFD4F042F6DDDCCEC917721F63BD38B4796')
sha256sums=('705c64251e5b25d5d55ede1039c6aa22bea40a7a931d14c370339853643c3df0' sha256sums=('4bef3699381ef09e075628504187416565d710660fec65b057edf1ceb187fc4b'
'SKIP') 'SKIP')
case "$CARCH" in case "$CARCH" in
@ -44,20 +45,15 @@ build() {
export GOROOT_BOOTSTRAP=/usr/lib/go export GOROOT_BOOTSTRAP=/usr/lib/go
export GOPATH="$srcdir/" export GOPATH="$srcdir/"
export GOROOT="$srcdir/$pkgname" export GOROOT="$srcdir/$pkgname"
export GOBIN="$GOROOT/bin"
cd "$pkgname/src" cd "$pkgname/src"
./make.bash --no-clean -v ./make.bash -v
PATH="$GOBIN:$PATH" go install -v std
} }
check() { check() {
export GOROOT_FINAL=/usr/lib/go export GOROOT_FINAL=/usr/lib/go
export GOROOT_BOOTSTRAP=/usr/lib/go export GOROOT_BOOTSTRAP=/usr/lib/go
export GOROOT="$srcdir/$pkgname" export GOROOT="$srcdir/$pkgname"
export GOBIN="$GOROOT/bin"
export PATH="$srcdir/$pkgname/bin:$PATH"
export GO_TEST_TIMEOUT_SCALE=3 export GO_TEST_TIMEOUT_SCALE=3
cd $pkgname/src cd $pkgname/src