diff --git a/Programming/go/build b/Programming/go/build new file mode 100755 index 0000000..e978d8d --- /dev/null +++ b/Programming/go/build @@ -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}" +} + diff --git a/Programming/go/files/variants.rhel7 b/Programming/go/files/variants.rhel7 new file mode 100644 index 0000000..05a569b --- /dev/null +++ b/Programming/go/files/variants.rhel7 @@ -0,0 +1 @@ +go/1.19.5 unstable diff --git a/Programming/go/modulefile b/Programming/go/modulefile new file mode 100644 index 0000000..fa7ac27 --- /dev/null +++ b/Programming/go/modulefile @@ -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 " + +module-help " +Go is an open source programming language that makes it easy to build simple, reliable, and efficient software. +" +module-addgroup "Programming"