From 2664240d497f31cbe06616780bd3166965508ca8 Mon Sep 17 00:00:00 2001 From: Kevin Mihelich Date: Thu, 2 Jun 2022 00:04:31 +0000 Subject: [PATCH] community/go to 1.18.3-1 --- community/go/PKGBUILD | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/community/go/PKGBUILD b/community/go/PKGBUILD index 63d1467d5..078c892b6 100644 --- a/community/go/PKGBUILD +++ b/community/go/PKGBUILD @@ -17,19 +17,19 @@ pkgname=go epoch=2 -pkgver=1.18.2 +pkgver=1.18.3 pkgrel=1 pkgdesc='Core compiler tools for the Go programming language' arch=(x86_64) url='https://golang.org/' license=(BSD) -makedepends=(git go perl) +makedepends=(git go) replaces=(go-pie) provides=(go-pie) options=(!strip staticlibs) -source=(https://storage.googleapis.com/golang/go$pkgver.src.tar.gz{,.asc}) +source=(https://go.dev/dl/go${pkgver}.src.tar.gz{,.asc}) validpgpkeys=('EB4C1BFD4F042F6DDDCCEC917721F63BD38B4796') -sha256sums=('2c44d03ea2c34092137ab919ba602f2c261a038d08eb468528a3f3a28e5667e2' +sha256sums=('0012386ddcbb5f3350e407c679923811dbd283fcdc421724931614a842ecbc2d' 'SKIP') case "$CARCH" in @@ -62,6 +62,11 @@ package() { "$pkgdir/usr/lib/go/pkg/linux_amd64_"{dynlink,race} cp -a bin pkg src lib misc api test "$pkgdir/usr/lib/go" + # We can't strip all binaries and libraries, + # as that also strips some testdata directories and breaks the tests. + # Just strip the packaged binaries as a compromise. + strip $STRIP_BINARIES "$pkgdir/usr/lib/go"{/bin/*,/pkg/tool/*/*} + cp -r doc/* "$pkgdir/usr/share/doc/go" ln -sf /usr/lib/go/bin/go "$pkgdir/usr/bin/go"