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.14 |
|
|
|
_MAJOR_VERSION=1.14.1 |
|
|
|
# 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=6d643e46ad565058c7a39dac01144172ef9bd476521f42148be59249e4b74389 |
|
|
|
TERMUX_PKG_SHA256=2ad2572115b0d1b4cb4c138e6b3a31cee6294cb48af75ee86bec3dca04507676 |
|
|
|
TERMUX_PKG_DEPENDS="clang" |
|
|
|
TERMUX_PKG_NO_STATICSPLIT=true |
|
|
|
|
|
|
|
|
|
@ -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.14 |
|
|
|
local TERMUX_GO_VERSION=go1.14.1 |
|
|
|
local TERMUX_GO_PLATFORM=linux-amd64 |
|
|
|
|
|
|
|
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" |
|
|
|
termux_download https://storage.googleapis.com/golang/${TERMUX_GO_VERSION}.${TERMUX_GO_PLATFORM}.tar.gz \ |
|
|
|
"$TERMUX_BUILDGO_TAR" \ |
|
|
|
08df79b46b0adf498ea9f320a0f23d6ec59e9003660b4c9c1ce8e5e2c6f823ca |
|
|
|
2f49eb17ce8b48c680cdb166ffd7389702c0dec6effa090c324804a5cac8a7f8 |
|
|
|
|
|
|
|
( cd "$TERMUX_COMMON_CACHEDIR"; tar xf "$TERMUX_BUILDGO_TAR"; mv go "$TERMUX_BUILDGO_FOLDER"; rm "$TERMUX_BUILDGO_TAR" ) |
|
|
|
else |
|
|
|