Upgrade to go version 1.14.5
This commit is contained in:
parent
43584f0b52
commit
ebc92a9485
@ -1,12 +1,12 @@
|
|||||||
TERMUX_PKG_HOMEPAGE=https://golang.org/
|
TERMUX_PKG_HOMEPAGE=https://golang.org/
|
||||||
TERMUX_PKG_DESCRIPTION="Go programming language compiler"
|
TERMUX_PKG_DESCRIPTION="Go programming language compiler"
|
||||||
TERMUX_PKG_LICENSE="BSD 3-Clause"
|
TERMUX_PKG_LICENSE="BSD 3-Clause"
|
||||||
_MAJOR_VERSION=1.14.4
|
_MAJOR_VERSION=1.14.5
|
||||||
# Use the ~ deb versioning construct in the future:
|
# Use the ~ deb versioning construct in the future:
|
||||||
TERMUX_PKG_VERSION=2:${_MAJOR_VERSION}
|
TERMUX_PKG_VERSION=2:${_MAJOR_VERSION}
|
||||||
TERMUX_PKG_REVISION=1
|
TERMUX_PKG_REVISION=1
|
||||||
TERMUX_PKG_SRCURL=https://storage.googleapis.com/golang/go${_MAJOR_VERSION}.src.tar.gz
|
TERMUX_PKG_SRCURL=https://storage.googleapis.com/golang/go${_MAJOR_VERSION}.src.tar.gz
|
||||||
TERMUX_PKG_SHA256=7011af3bbc2ac108d1b82ea8abb87b2e63f78844f0259be20cde4d42c5c40584
|
TERMUX_PKG_SHA256=ca4c080c90735e56152ac52cd77ae57fe573d1debb1a58e03da9cc362440315c
|
||||||
TERMUX_PKG_DEPENDS="clang"
|
TERMUX_PKG_DEPENDS="clang"
|
||||||
TERMUX_PKG_NO_STATICSPLIT=true
|
TERMUX_PKG_NO_STATICSPLIT=true
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# Utility function for golang-using packages to setup a go toolchain.
|
# Utility function for golang-using packages to setup a go toolchain.
|
||||||
termux_setup_golang() {
|
termux_setup_golang() {
|
||||||
if [ "$TERMUX_ON_DEVICE_BUILD" = "false" ]; then
|
if [ "$TERMUX_ON_DEVICE_BUILD" = "false" ]; then
|
||||||
local TERMUX_GO_VERSION=go1.14.4
|
local TERMUX_GO_VERSION=go1.14.5
|
||||||
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}
|
||||||
@ -14,7 +14,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" \
|
||||||
aed845e4185a0b2a3c3d5e1d0a35491702c55889192bb9c30e67a3de6849c067
|
82a1b84f16858db03231eb201f90cce2a991078dda543879b87e738e2586854b
|
||||||
|
|
||||||
( 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" )
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user