Date: Thursday, September 17, 2020 @ 21:51:13 Author: foxboron Revision: 709467
archrelease: copy trunk to community-x86_64 Added: go-tools/repos/community-x86_64/PKGBUILD (from rev 709466, go-tools/trunk/PKGBUILD) Deleted: go-tools/repos/community-x86_64/PKGBUILD ----------+ PKGBUILD | 122 ++++++++++++++++++++++++++++--------------------------------- 1 file changed, 57 insertions(+), 65 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2020-09-17 21:51:05 UTC (rev 709466) +++ PKGBUILD 2020-09-17 21:51:13 UTC (rev 709467) @@ -1,65 +0,0 @@ -# Maintainer: Bartłomiej Piotrowski <bpiotrow...@archlinux.org> -# Maintainer: Morten Linderud <foxbo...@archlinux.org> - -pkgname=go-tools -epoch=2 -pkgver=1.15+4895+c1934b75d -pkgrel=1 -pkgdesc='Developer tools for the Go programming language' -arch=(x86_64) -url='https://golang.org/' -license=(BSD) -depends=(glibc) -makedepends=(git go) -_commit=c1934b75d054975b79a8179cb6f0a9b8b3fa33cd -source=(go-tools::git+https://go.googlesource.com/tools#commit=$_commit) -md5sums=('SKIP') - -_tools=(benchcmp callgraph compilebench cover digraph eg fiximports - go-contrib-init godex godoc goimports gomvpkg gorename gotype - goyacc guru html2article present ssadump stringer gopls - toolstash) - -pkgver() { - local _gover=1.15 - cd go-tools - printf "%s+%s+%s" $_gover "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" -} - -prepare() { - cd go-tools - mkdir -p bin/ -} - -build() { - cd go-tools - export CGO_CPPFLAGS="${CPPFLAGS}" - export CGO_CFLAGS="${CFLAGS}" - export CGO_CXXFLAGS="${CXXFLAGS}" - export CGO_LDFLAGS="${LDFLAGS}" - export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw" - go build -o bin/ ./cmd/... - - cd gopls - go build -o ../bin/ ./... -} - -check() { - cd go-tools - # Needs to be updated and godoc is failing the test suite - # See https://github.com/golang/go/issues/35690 - go test ./cmd/... || true - - # It's just broken..... - cd gopls - go test ./... || true -} - -package() { - cd go-tools - for tool in ${_tools[@]}; do - install -Dm755 bin/$tool "$pkgdir/usr/bin/$tool" - done - - install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" -} Copied: go-tools/repos/community-x86_64/PKGBUILD (from rev 709466, go-tools/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2020-09-17 21:51:13 UTC (rev 709467) @@ -0,0 +1,57 @@ +# Maintainer: Bartłomiej Piotrowski <bpiotrow...@archlinux.org> +# Maintainer: Morten Linderud <foxbo...@archlinux.org> + +pkgname=go-tools +epoch=2 +pkgver=1.15+4895+c1934b75d +pkgrel=2 +pkgdesc='Developer tools for the Go programming language' +arch=(x86_64) +url='https://golang.org/' +license=(BSD) +depends=(glibc) +makedepends=(git go) +_commit=c1934b75d054975b79a8179cb6f0a9b8b3fa33cd +source=(go-tools::git+https://go.googlesource.com/tools#commit=$_commit) +md5sums=('SKIP') + +_tools=(benchcmp callgraph compilebench cover digraph eg fiximports + go-contrib-init godex godoc goimports gomvpkg gorename gotype + goyacc guru html2article present ssadump stringer toolstash) + +pkgver() { + local _gover=1.15 + cd go-tools + printf "%s+%s+%s" $_gover "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +prepare() { + cd go-tools + mkdir -p bin/ +} + +build() { + cd go-tools + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export CGO_LDFLAGS="${LDFLAGS}" + export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw" + go build -o bin/ ./cmd/... +} + +check() { + cd go-tools + # Needs to be updated and godoc is failing the test suite + # See https://github.com/golang/go/issues/35690 + go test ./cmd/... || true +} + +package() { + cd go-tools + for tool in ${_tools[@]}; do + install -Dm755 bin/$tool "$pkgdir/usr/bin/$tool" + done + + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +}