From 93a354611e38a6949add5c2e5ccc93ef79b9755f Mon Sep 17 00:00:00 2001 From: Woodpecker CI Date: Tue, 3 Jun 2025 14:32:36 +0000 Subject: Woodpecker CI 5171f1fdd74e7137c305450dd69a29fa5be4143f [SKIP CI] --- go/abuild | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 go/abuild (limited to 'go/abuild') diff --git a/go/abuild b/go/abuild new file mode 100644 index 00000000..85fc0923 --- /dev/null +++ b/go/abuild @@ -0,0 +1,31 @@ +name=go +version=1.24.3 +release=1 +source="https://${name}lang.org/dl/${name}${version}.src.tar.gz + https://golang.org/dl/go${version}.linux-amd64.tar.gz::noextract + make.sh" + +build() { + if [ ! "$(which go)" ]; then + mkdir $SRC/gobin + tar xf $SRC/go${version}.linux-amd64.tar.gz -C $SRC/gobin + export GOROOT_BOOTSTRAP=$SRC/gobin/go + else + export GOROOT_BOOTSTRAP=/usr/lib/go + fi + + export GOCACHE=$SRC/.go + export GOROOT_FINAL=/usr/lib/go + + cd src + cp $SRC/make.sh . + chmod +x make.sh + ./make.sh + + install -d $PKG/usr/lib + mv $SRC/go $PKG/usr/lib/ + + install -d $PKG/usr/bin + ln -s /usr/lib/go/bin/go $PKG/usr/bin/ + ln -s /usr/lib/go/bin/gofmt $PKG/usr/bin/ +} -- cgit v1.2.3