Browse Source

go: Update from 1.11.5 to 1.12

android-5
Fredrik Fornwall 6 years ago
parent
commit
bedfd17f7e
  1. 4
      packages/golang/build.sh
  2. 4
      scripts/build/setup/termux_setup_golang.sh

4
packages/golang/build.sh

@ -1,8 +1,8 @@
TERMUX_PKG_HOMEPAGE=https://golang.org/
TERMUX_PKG_DESCRIPTION="Go programming language compiler"
TERMUX_PKG_LICENSE="BSD 3-Clause"
local _MAJOR_VERSION=1.11.5
TERMUX_PKG_SHA256=bc1ef02bb1668835db1390a2e478dcbccb5dd16911691af9d75184bbe5aa943e
local _MAJOR_VERSION=1.12
TERMUX_PKG_SHA256=09c43d3336743866f2985f566db0520b36f4992aea2b4b2fd9f52f17049e88f2
# 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

4
scripts/build/setup/termux_setup_golang.sh

@ -17,7 +17,7 @@ termux_setup_golang() {
termux_error_exit "Unsupported arch: $TERMUX_ARCH"
fi
local TERMUX_GO_VERSION=go1.11.5
local TERMUX_GO_VERSION=go1.12
local TERMUX_GO_PLATFORM=linux-amd64
local TERMUX_BUILDGO_FOLDER=$TERMUX_COMMON_CACHEDIR/${TERMUX_GO_VERSION}
@ -30,7 +30,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" \
ff54aafedff961eb94792487e827515da683d61a5f9482f668008832631e5d25
750a07fef8579ae4839458701f4df690e0b20b8bcce33b437e4df89c451b6f13
( cd "$TERMUX_COMMON_CACHEDIR"; tar xf "$TERMUX_BUILDGO_TAR"; mv go "$TERMUX_BUILDGO_FOLDER"; rm "$TERMUX_BUILDGO_TAR" )
}

Loading…
Cancel
Save