Merge branch 'golang' into 'master'
Golang See merge request Pmodules/buildblocks!376
This commit is contained in:
21
Programming/go/build
Executable file
21
Programming/go/build
Executable 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}"
|
||||
}
|
||||
|
||||
1
Programming/go/files/variants.rhel7
Normal file
1
Programming/go/files/variants.rhel7
Normal file
@@ -0,0 +1 @@
|
||||
go/1.19.5 unstable
|
||||
11
Programming/go/modulefile
Normal file
11
Programming/go/modulefile
Normal 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"
|
||||
Reference in New Issue
Block a user