golang: Bump version, depend on clang&fix zoneinfo
This commit is contained in:
parent
0d6ef2ea39
commit
23a5092d83
@ -3,9 +3,11 @@ TERMUX_PKG_DESCRIPTION="Go programming language compiler"
|
|||||||
_MAJOR_VERSION=1.7
|
_MAJOR_VERSION=1.7
|
||||||
# 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_BUILD_REVISION=1
|
||||||
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_FOLDERNAME=go
|
TERMUX_PKG_FOLDERNAME=go
|
||||||
TERMUX_PKG_KEEP_STATIC_LIBRARIES=true
|
TERMUX_PKG_KEEP_STATIC_LIBRARIES=true
|
||||||
|
TERMUX_PKG_DEPENDS="clang"
|
||||||
|
|
||||||
termux_step_make_install () {
|
termux_step_make_install () {
|
||||||
termux_setup_golang
|
termux_setup_golang
|
||||||
@ -13,7 +15,7 @@ termux_step_make_install () {
|
|||||||
TERMUX_GOLANG_DIRNAME=${GOOS}_$GOARCH
|
TERMUX_GOLANG_DIRNAME=${GOOS}_$GOARCH
|
||||||
TERMUX_GODIR=$TERMUX_PREFIX/lib/go
|
TERMUX_GODIR=$TERMUX_PREFIX/lib/go
|
||||||
rm -Rf $TERMUX_GODIR
|
rm -Rf $TERMUX_GODIR
|
||||||
mkdir -p $TERMUX_GODIR/{src,pkg/tool/$TERMUX_GOLANG_DIRNAME,pkg/include,pkg/${TERMUX_GOLANG_DIRNAME}_shared}
|
mkdir -p $TERMUX_GODIR/{src,lib,pkg/tool/$TERMUX_GOLANG_DIRNAME,pkg/include,pkg/${TERMUX_GOLANG_DIRNAME}_shared}
|
||||||
|
|
||||||
cd $TERMUX_PKG_SRCDIR/src
|
cd $TERMUX_PKG_SRCDIR/src
|
||||||
env CC_FOR_TARGET=$CC \
|
env CC_FOR_TARGET=$CC \
|
||||||
@ -30,6 +32,7 @@ termux_step_make_install () {
|
|||||||
cp pkg/tool/$TERMUX_GOLANG_DIRNAME/* $TERMUX_GODIR/pkg/tool/$TERMUX_GOLANG_DIRNAME/
|
cp pkg/tool/$TERMUX_GOLANG_DIRNAME/* $TERMUX_GODIR/pkg/tool/$TERMUX_GOLANG_DIRNAME/
|
||||||
cp -Rf src/* $TERMUX_GODIR/src/
|
cp -Rf src/* $TERMUX_GODIR/src/
|
||||||
cp pkg/include/* $TERMUX_GODIR/pkg/include/
|
cp pkg/include/* $TERMUX_GODIR/pkg/include/
|
||||||
|
cp -Rf lib/* $TERMUX_GODIR/lib
|
||||||
cp -Rf pkg/${TERMUX_GOLANG_DIRNAME}_shared/* $TERMUX_GODIR/pkg/${TERMUX_GOLANG_DIRNAME}_shared/
|
cp -Rf pkg/${TERMUX_GOLANG_DIRNAME}_shared/* $TERMUX_GODIR/pkg/${TERMUX_GOLANG_DIRNAME}_shared/
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user