Files
MX_Pmodule/Programming/go/build
2023-01-12 10:22:46 +01:00

22 lines
438 B
Plaintext
Executable File

#!/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}"
}