From 07cd044cc56983f2b5859d61f5b144a32caed06a Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Sun, 11 Feb 2018 22:00:30 +0100 Subject: [PATCH] golang: Add golang-doc subpackage (fixes #2000) --- packages/golang/build.sh | 4 +++- packages/golang/golang-doc.subpackage.sh | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 packages/golang/golang-doc.subpackage.sh diff --git a/packages/golang/build.sh b/packages/golang/build.sh index 8d10c05d3..bfd3363eb 100644 --- a/packages/golang/build.sh +++ b/packages/golang/build.sh @@ -3,6 +3,7 @@ TERMUX_PKG_DESCRIPTION="Go programming language compiler" local _MAJOR_VERSION=1.9.4 # Use the ~ deb versioning construct in the future: TERMUX_PKG_VERSION=2:${_MAJOR_VERSION} +TERMUX_PKG_REVISION=1 TERMUX_PKG_SRCURL=https://storage.googleapis.com/golang/go${_MAJOR_VERSION}.src.tar.gz TERMUX_PKG_SHA256=0573a8df33168977185aa44173305e5a0450f55213600e94541604b75d46dc06 TERMUX_PKG_KEEP_STATIC_LIBRARIES=true @@ -14,7 +15,7 @@ termux_step_make_install () { TERMUX_GOLANG_DIRNAME=${GOOS}_$GOARCH TERMUX_GODIR=$TERMUX_PREFIX/lib/go rm -Rf $TERMUX_GODIR - mkdir -p $TERMUX_GODIR/{src,lib,pkg/tool/$TERMUX_GOLANG_DIRNAME,pkg/include,pkg/${TERMUX_GOLANG_DIRNAME}} + mkdir -p $TERMUX_GODIR/{src,doc,lib,pkg/tool/$TERMUX_GOLANG_DIRNAME,pkg/include,pkg/${TERMUX_GOLANG_DIRNAME}} cd $TERMUX_PKG_SRCDIR/src env CC_FOR_TARGET=$CC \ @@ -30,6 +31,7 @@ termux_step_make_install () { cp VERSION $TERMUX_GODIR/ cp pkg/tool/$TERMUX_GOLANG_DIRNAME/* $TERMUX_GODIR/pkg/tool/$TERMUX_GOLANG_DIRNAME/ cp -Rf src/* $TERMUX_GODIR/src/ + cp -Rf doc/* $TERMUX_GODIR/doc/ cp pkg/include/* $TERMUX_GODIR/pkg/include/ cp -Rf lib/* $TERMUX_GODIR/lib cp -Rf pkg/${TERMUX_GOLANG_DIRNAME}/* $TERMUX_GODIR/pkg/${TERMUX_GOLANG_DIRNAME}/ diff --git a/packages/golang/golang-doc.subpackage.sh b/packages/golang/golang-doc.subpackage.sh new file mode 100644 index 000000000..70021b6fb --- /dev/null +++ b/packages/golang/golang-doc.subpackage.sh @@ -0,0 +1,3 @@ +TERMUX_SUBPKG_INCLUDE="lib/go/doc" +TERMUX_SUBPKG_DESCRIPTION="Go programming language - documentation" +TERMUX_SUBPKG_DEPENDS="golang"