Leonid Plyushch
5 years ago
No known key found for this signature in database
GPG Key ID: 45F2964132545795
2 changed files with
4 additions and
4 deletions
-
packages/golang/build.sh
-
scripts/build/setup/termux_setup_golang.sh
|
|
@ -1,11 +1,11 @@ |
|
|
|
TERMUX_PKG_HOMEPAGE=https://golang.org/ |
|
|
|
TERMUX_PKG_DESCRIPTION="Go programming language compiler" |
|
|
|
TERMUX_PKG_LICENSE="BSD 3-Clause" |
|
|
|
local _MAJOR_VERSION=1.13.6 |
|
|
|
local _MAJOR_VERSION=1.13.7 |
|
|
|
# Use the ~ deb versioning construct in the future: |
|
|
|
TERMUX_PKG_VERSION=2:${_MAJOR_VERSION} |
|
|
|
TERMUX_PKG_SRCURL=https://storage.googleapis.com/golang/go${_MAJOR_VERSION}.src.tar.gz |
|
|
|
TERMUX_PKG_SHA256=aae5be954bdc40bcf8006eb77e8d8a5dde412722bc8effcdaf9772620d06420c |
|
|
|
TERMUX_PKG_SHA256=e4ad42cc5f5c19521fbbbde3680995f2546110b5c6aa2b48c3754ff7af9b41f4 |
|
|
|
TERMUX_PKG_DEPENDS="clang" |
|
|
|
TERMUX_PKG_NO_STATICSPLIT=true |
|
|
|
|
|
|
|
|
|
@ -1,7 +1,7 @@ |
|
|
|
# Utility function for golang-using packages to setup a go toolchain. |
|
|
|
termux_setup_golang() { |
|
|
|
if [ "$TERMUX_ON_DEVICE_BUILD" = "false" ]; then |
|
|
|
local TERMUX_GO_VERSION=go1.13.6 |
|
|
|
local TERMUX_GO_VERSION=go1.13.7 |
|
|
|
local TERMUX_GO_PLATFORM=linux-amd64 |
|
|
|
|
|
|
|
local TERMUX_BUILDGO_FOLDER=$TERMUX_COMMON_CACHEDIR/${TERMUX_GO_VERSION} |
|
|
@ -14,7 +14,7 @@ termux_setup_golang() { |
|
|
|
rm -Rf "$TERMUX_COMMON_CACHEDIR/go" "$TERMUX_BUILDGO_FOLDER" |
|
|
|
termux_download https://storage.googleapis.com/golang/${TERMUX_GO_VERSION}.${TERMUX_GO_PLATFORM}.tar.gz \ |
|
|
|
"$TERMUX_BUILDGO_TAR" \ |
|
|
|
a1bc06deb070155c4f67c579f896a45eeda5a8fa54f35ba233304074c4abbbbd |
|
|
|
b3dd4bd781a0271b33168e627f7f43886b4c5d1c794a4015abf34e99c6526ca3 |
|
|
|
|
|
|
|
( cd "$TERMUX_COMMON_CACHEDIR"; tar xf "$TERMUX_BUILDGO_TAR"; mv go "$TERMUX_BUILDGO_FOLDER"; rm "$TERMUX_BUILDGO_TAR" ) |
|
|
|
else |
|
|
|