Leonid Plyushch
5 years ago
No known key found for this signature in database
GPG Key ID: 45F2964132545795
2 changed files with
4 additions and
4 deletions
-
packages/golang/build.sh
-
scripts/build/setup/termux_setup_golang.sh
|
|
@ -1,11 +1,11 @@ |
|
|
|
TERMUX_PKG_HOMEPAGE=https://golang.org/ |
|
|
|
TERMUX_PKG_DESCRIPTION="Go programming language compiler" |
|
|
|
TERMUX_PKG_LICENSE="BSD 3-Clause" |
|
|
|
local _MAJOR_VERSION=1.13.1 |
|
|
|
local _MAJOR_VERSION=1.13.3 |
|
|
|
# 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=81f154e69544b9fa92b1475ff5f11e64270260d46e7e36c34aafc8bc96209358 |
|
|
|
TERMUX_PKG_SHA256=4f7123044375d5c404280737fbd2d0b17064b66182a65919ffe20ffe8620e3df |
|
|
|
TERMUX_PKG_DEPENDS="clang" |
|
|
|
TERMUX_PKG_NO_STATICSPLIT=true |
|
|
|
|
|
|
|
|
|
@ -20,7 +20,7 @@ termux_setup_golang() { |
|
|
|
fi |
|
|
|
|
|
|
|
if [ "$TERMUX_ON_DEVICE_BUILD" = "false" ]; then |
|
|
|
local TERMUX_GO_VERSION=go1.13.1 |
|
|
|
local TERMUX_GO_VERSION=go1.13.3 |
|
|
|
local TERMUX_GO_PLATFORM=linux-amd64 |
|
|
|
|
|
|
|
local TERMUX_BUILDGO_FOLDER=$TERMUX_COMMON_CACHEDIR/${TERMUX_GO_VERSION} |
|
|
@ -33,7 +33,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" \ |
|
|
|
94f874037b82ea5353f4061e543681a0e79657f787437974214629af8407d124 |
|
|
|
0804bf02020dceaa8a7d7275ee79f7a142f1996bfd0c39216ccb405f93f994c0 |
|
|
|
|
|
|
|
( cd "$TERMUX_COMMON_CACHEDIR"; tar xf "$TERMUX_BUILDGO_TAR"; mv go "$TERMUX_BUILDGO_FOLDER"; rm "$TERMUX_BUILDGO_TAR" ) |
|
|
|
else |
|
|
|