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..."
mkdir -p "$PREFIX/share" "$PREFIX/bin"
cp -a ../go "$PREFIX/share/"
ln -sf "$PREFIX/share/go/bin/go" "$PREFIX/bin/go"
ln -sf "$PREFIX/share/go/bin/gofmt" "$PREFIX/bin/gofmt"
if ! grep -q "export GOROOT=$PREFIX/share/go" /etc/profile 2>/dev/null; then
echo "export GOROOT=$PREFIX/share/go" >> /etc/profile
fi
}
post_install() {
go telemetry off
}
. ${0%/*}/../../libsh/libdmake.sh
