Merge branch 'golang' into 'master'

Golang

See merge request Pmodules/buildblocks!376
This commit is contained in:
2023-01-12 09:23:51 +00:00
3 changed files with 33 additions and 0 deletions

21
Programming/go/build Executable file
View File

@@ -0,0 +1,21 @@
#!/usr/bin/env modbuild
pbuild::set_download_url "https://go.dev/dl/go${V_PKG}.src.tar.gz"
pbuild::add_to_group 'Programming'
pbuild::install_docfiles 'CONTRIBUTING.md' 'LICENSE' 'PATENTS' 'README.md' 'SECURITY.md' 'VERSION'
pbuild::compile_in_sourcetree
pbuild::compile() {
export GOROOT_FINAL=${PREFIX}
export GOMAXPROCS=8
cd src
./all.bash
cd ..
}
pbuild::install() {
rsync -av --exclude "pkg/obj/*" . "${PREFIX}"
}

View File

@@ -0,0 +1 @@
go/1.19.5 unstable

11
Programming/go/modulefile Normal file
View File

@@ -0,0 +1,11 @@
#%Module1.0
module-whatis "The Go Programming Language"
module-url "https://go.googlesource.com/go/"
module-license "https://go.googlesource.com/go/+/refs/heads/master/LICENSE"
module-maintainer "Marc Caubet Serrabou <marc.caubet@psi.ch>"
module-help "
Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.
"
module-addgroup "Programming"