Upgrade to Golang version 1.14.4

This commit is contained in:
Nuruddin Ashr 2020-06-03 17:13:59 +07:00 committed by Leonid Pliushch
parent 3052b86703
commit b1dda1c1c2
2 changed files with 4 additions and 4 deletions

View File

@ -1,11 +1,11 @@
TERMUX_PKG_HOMEPAGE=https://golang.org/
TERMUX_PKG_DESCRIPTION="Go programming language compiler"
TERMUX_PKG_LICENSE="BSD 3-Clause"
_MAJOR_VERSION=1.14.3
_MAJOR_VERSION=1.14.4
# 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=93023778d4d1797b7bc6a53e86c3a9b150c923953225f8a48a2d5fabc971af56
TERMUX_PKG_SHA256=7011af3bbc2ac108d1b82ea8abb87b2e63f78844f0259be20cde4d42c5c40584
TERMUX_PKG_DEPENDS="clang"
TERMUX_PKG_NO_STATICSPLIT=true

View File

@ -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.14.3
local TERMUX_GO_VERSION=go1.14.4
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" \
1c39eac4ae95781b066c144c58e45d6859652247f7515f0d2cba7be7d57d2226
aed845e4185a0b2a3c3d5e1d0a35491702c55889192bb9c30e67a3de6849c067
( cd "$TERMUX_COMMON_CACHEDIR"; tar xf "$TERMUX_BUILDGO_TAR"; mv go "$TERMUX_BUILDGO_FOLDER"; rm "$TERMUX_BUILDGO_TAR" )
else