From 85ee292ea2bca85c422c483eca97fafa8fb883a7 Mon Sep 17 00:00:00 2001 From: AleksArt000 Date: Sat, 9 Nov 2024 14:25:08 +0100 Subject: [PATCH] addeed go --- extra/bin/go-bootstrap-x86-64.ecmp | 18 ++++++++++++++++ extra/src/go.ecmp | 33 ++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 extra/bin/go-bootstrap-x86-64.ecmp create mode 100644 extra/src/go.ecmp diff --git a/extra/bin/go-bootstrap-x86-64.ecmp b/extra/bin/go-bootstrap-x86-64.ecmp new file mode 100644 index 0000000..06846f7 --- /dev/null +++ b/extra/bin/go-bootstrap-x86-64.ecmp @@ -0,0 +1,18 @@ +[info] +name = go-bootstrap-x86-64 +type = bin +version = 1.23.3 +url = https://go.dev/dl/ + +[description] +This is a binary bootstrap for compiling go + +[files] +go1.23.3.linux-amd64.tar.gz https://dl.google.com/go/go1.23.3.linux-amd64.tar.gz a0afb9744c00648bafb1b90b4aba5bdb86f424f02f9275399ce0c20b93a2c3a8 + +[download] +tar -xf go1.23.3.linux-amd64.tar.gz +mv ./go ./go-bootstrap-x86-64-1.23.3 + +[install] +mv ./* $SOVIET_BUILD_DIR/opt/go-bootstrap/ \ No newline at end of file diff --git a/extra/src/go.ecmp b/extra/src/go.ecmp new file mode 100644 index 0000000..58c0216 --- /dev/null +++ b/extra/src/go.ecmp @@ -0,0 +1,33 @@ +[info] +name = go +type = src +version = 1.23.3 +url = https://go.dev/dl/ + +[description] +The Go programming language is an open source project to make programmers more productive. + +[files] +go1.23.3.src.tar.gz https://dl.google.com/go/go1.23.3.src.tar.gz 8d6a77332487557c6afa2421131b50f83db4ae3c579c3bc72e670ee1f6968599 + +[optional] +go-bootstrap-x86-64 + +[exports] +GOROOT_BOOTSTRAP=/opt/go-bootstrap + +[download] +tar -xf go1.23.3.src.tar.gz +mv ./go ./go-1.23.3 + +[install] +cd src && +./make.bash && +cd .. + +mkdir -p $SOVIET_BUILD_DIR/usr/bin +mkdir -p $SOVIET_BUILD_DIR/opt/go +mv ./* $SOVIET_BUILD_DIR/opt/go/ + +ln -sfv $SOVIET_BUILD_DIR/opt/go/bin/go $SOVIET_BUILD_DIR/usr/bin/go +ln -sfv $SOVIET_BUILD_DIR/opt/go/bin/gofmt $SOVIET_BUILD_DIR/usr/bin/gofmt \ No newline at end of file