lang/go-bin/ndmake.sh
$ cat ndmake.sh
#!/bin/sh -ue
NAME=go-bin
VERSION=1.25.3
RELEASE=1
SOURCE="https://go.dev/dl/go1.25.3.linux-amd64.tar.gz"
BUILD_STYLE=make
build() {
msg "installing go-bin..."
cp -a ../go /usr/share
ln -sf "/usr/share/go/bin/go" /bin/go
ln -sf "/usr/share/go/bin/gofmt" /bin/gofmt
if ! grep -q "export GOROOT=/usr/share/go" /etc/profile 2>/dev/null; then
echo "export GOROOT=/usr/share/go" >> /etc/profile
fi
}
post_install() {
go telemetry off
}
. ${0%/*}/../../libsh/libdmake.sh
