# SPDX-License-Identifier: GPL-2.0-or-later # Copyright (C) 2016-present Team LibreELEC (https://libreelec.tv) PKG_NAME="go" PKG_VERSION="1.24.4" PKG_SHA256="0ffcfbfb5cf7f29c7fe5383550f1212c577c4d8cb29d1470432f76e9859bd4c0" PKG_LICENSE="BSD" PKG_SITE="https://golang.org" PKG_URL="https://github.com/golang/go/archive/${PKG_NAME}${PKG_VERSION}.tar.gz" PKG_DEPENDS_HOST="toolchain" PKG_LONGDESC="An programming language that makes it easy to build simple, reliable, and efficient software." PKG_TOOLCHAIN="manual" configure_host() { export GOROOT_FINAL=${TOOLCHAIN}/lib/golang if [ -x /usr/local/go/bin/go ]; then export GOROOT_BOOTSTRAP=/usr/local/go elif [ -x /usr/lib/go/bin/go ]; then export GOROOT_BOOTSTRAP=/usr/lib/go else export GOROOT_BOOTSTRAP=/usr/lib/golang fi if [ ! -d ${GOROOT_BOOTSTRAP} ]; then cat <