Upgrade golang version to 1.14.2 (#5143)
This commit is contained in:
parent
de2945fa87
commit
3738891830
@ -1,11 +1,11 @@
|
|||||||
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.1
|
_MAJOR_VERSION=1.14.2
|
||||||
# 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_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=2ad2572115b0d1b4cb4c138e6b3a31cee6294cb48af75ee86bec3dca04507676
|
TERMUX_PKG_SHA256=98de84e69726a66da7b4e58eac41b99cbe274d7e8906eeb8a5b7eb0aadee7f7c
|
||||||
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.1
|
local TERMUX_GO_VERSION=go1.14.2
|
||||||
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" \
|
||||||
2f49eb17ce8b48c680cdb166ffd7389702c0dec6effa090c324804a5cac8a7f8
|
6272d6e940ecb71ea5636ddb5fab3933e087c1356173c61f4a803895e947ebb3
|
||||||
|
|
||||||
( 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