golang: update to 1.15.5

This commit is contained in:
Leonid Pliushch 2020-11-22 12:54:14 +00:00
parent ce27940ea1
commit 1cff00f7cb
2 changed files with 4 additions and 5 deletions

View File

@ -1,12 +1,11 @@
TERMUX_PKG_HOMEPAGE=https://golang.org/
TERMUX_PKG_DESCRIPTION="Go programming language compiler"
TERMUX_PKG_LICENSE="BSD 3-Clause"
_MAJOR_VERSION=1.15.3
_MAJOR_VERSION=1.15.5
# Use the ~ deb versioning construct in the future:
TERMUX_PKG_VERSION=2:${_MAJOR_VERSION}
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://storage.googleapis.com/golang/go${_MAJOR_VERSION}.src.tar.gz
TERMUX_PKG_SHA256=896a602570e54c8cdfc2c1348abd4ffd1016758d0bd086ccd9787dbfc9b64888
TERMUX_PKG_SHA256=c1076b90cf94b73ebed62a81d802cd84d43d02dea8c07abdc922c57a071c84f1
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.15.3
local TERMUX_GO_VERSION=go1.15.5
local TERMUX_GO_PLATFORM=linux-amd64
local TERMUX_BUILDGO_FOLDER
@ -20,7 +20,7 @@ termux_setup_golang() {
rm -Rf "$TERMUX_COMMON_CACHEDIR/go" "$TERMUX_BUILDGO_FOLDER"
termux_download https://golang.org/dl/${TERMUX_GO_VERSION}.${TERMUX_GO_PLATFORM}.tar.gz \
"$TERMUX_BUILDGO_TAR" \
010a88df924a81ec21b293b5da8f9b11c176d27c0ee3962dc1738d2352d3c02d
9a58494e8da722c3aef248c9227b0e9c528c7318309827780f16220998180a0d
( cd "$TERMUX_COMMON_CACHEDIR"; tar xf "$TERMUX_BUILDGO_TAR"; mv go "$TERMUX_BUILDGO_FOLDER"; rm "$TERMUX_BUILDGO_TAR" )
else