git » go-1.20.git » commit a894f89

upgpkg: 2:1.18.3-1

author Morten Linderud
2022-06-01 21:38:47 UTC
committer Morten Linderud
2022-06-01 21:38:47 UTC
parent ee398b24304c3761821daaba95c47fb4f79e2cfd

upgpkg: 2:1.18.3-1

PKGBUILD +9 -4

diff --git a/PKGBUILD b/PKGBUILD
index 62f8ee3..3d7079a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -14,19 +14,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')
 
 build() {
@@ -53,6 +53,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"