|
@ -70,7 +70,7 @@ termux_setup_golang() { |
|
|
termux_error_exit "Unsupported arch: $TERMUX_ARCH" |
|
|
termux_error_exit "Unsupported arch: $TERMUX_ARCH" |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
local TERMUX_GO_VERSION=go1.8.3 |
|
|
local TERMUX_GO_VERSION=go1.9 |
|
|
local TERMUX_GO_PLATFORM=linux-amd64 |
|
|
local TERMUX_GO_PLATFORM=linux-amd64 |
|
|
|
|
|
|
|
|
local TERMUX_BUILDGO_FOLDER=$TERMUX_COMMON_CACHEDIR/${TERMUX_GO_VERSION} |
|
|
local TERMUX_BUILDGO_FOLDER=$TERMUX_COMMON_CACHEDIR/${TERMUX_GO_VERSION} |
|
@ -83,7 +83,7 @@ termux_setup_golang() { |
|
|
rm -Rf "$TERMUX_COMMON_CACHEDIR/go" "$TERMUX_BUILDGO_FOLDER" |
|
|
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_download https://storage.googleapis.com/golang/${TERMUX_GO_VERSION}.${TERMUX_GO_PLATFORM}.tar.gz \ |
|
|
"$TERMUX_BUILDGO_TAR" \ |
|
|
"$TERMUX_BUILDGO_TAR" \ |
|
|
1862f4c3d3907e59b04a757cfda0ea7aa9ef39274af99a784f5be843c80c6772 |
|
|
d70eadefce8e160638a9a6db97f7192d8463069ab33138893ad3bf31b0650a79 |
|
|
|
|
|
|
|
|
( cd "$TERMUX_COMMON_CACHEDIR"; tar xf "$TERMUX_BUILDGO_TAR"; mv go "$TERMUX_BUILDGO_FOLDER"; rm "$TERMUX_BUILDGO_TAR" ) |
|
|
( cd "$TERMUX_COMMON_CACHEDIR"; tar xf "$TERMUX_BUILDGO_TAR"; mv go "$TERMUX_BUILDGO_FOLDER"; rm "$TERMUX_BUILDGO_TAR" ) |
|
|
} |
|
|
} |
|
|