build-package.sh: Avoid more gnulib wrappers
[termux-packages] / packages / golang / build.sh
index 0497eae..5501554 100644 (file)
@@ -1,10 +1,10 @@
 TERMUX_PKG_HOMEPAGE=https://golang.org/
 TERMUX_PKG_DESCRIPTION="Go programming language compiler"
-_MAJOR_VERSION=1.7
+_MAJOR_VERSION=1.7.5
 # Use the ~ deb versioning construct in the future:
 TERMUX_PKG_VERSION=2:${_MAJOR_VERSION}
-TERMUX_PKG_BUILD_REVISION=1
 TERMUX_PKG_SRCURL=https://storage.googleapis.com/golang/go${_MAJOR_VERSION}.src.tar.gz
+TERMUX_PKG_SHA256=4e834513a2079f8cbbd357502cccaac9507fd00a1efe672375798858ff291815
 TERMUX_PKG_FOLDERNAME=go
 TERMUX_PKG_KEEP_STATIC_LIBRARIES=true
 TERMUX_PKG_DEPENDS="clang"
@@ -20,10 +20,10 @@ termux_step_make_install () {
        cd $TERMUX_PKG_SRCDIR/src
        env CC_FOR_TARGET=$CC \
            CXX_FOR_TARGET=$CXX \
-           CC=gcc \
+           CC=clang \
            GO_LDFLAGS="-extldflags=-pie" \
            GOROOT_BOOTSTRAP=$GOROOT \
-            GOROOT_FINAL=$TERMUX_GODIR \
+           GOROOT_FINAL=$TERMUX_GODIR \
            ./make.bash
 
        cd ..