Skip to content
This repository has been archived by the owner on May 20, 2023. It is now read-only.

Commit

Permalink
archrelease: copy trunk to community-x86_64
Browse files Browse the repository at this point in the history
git-svn-id: file:///srv/repos/svn-community/svn@1218373 9fca08f4-af9d-4005-b8df-a31f2cc04f65
  • Loading branch information
Foxboron committed Jun 1, 2022
1 parent 502594e commit 15ff6d4
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions go/repos/community-x86_64/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand All @@ -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"
Expand Down

0 comments on commit 15ff6d4

Please sign in to comment.