From 1ec1a8cff599d230b97edd351ffffa0e458020d8 Mon Sep 17 00:00:00 2001 From: Krishna Kanhaiya Date: Tue, 5 May 2020 16:43:44 +0530 Subject: [PATCH] Rush: A cross-platform command-line tool for executing jobs in parallel (#5243) * rush: build.sh * rush:build.sh * rush * rush: fix extra space in TERMUX_PKG_DESCRIPTION Co-authored-by: Henrik Grimler --- packages/rush/build.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 packages/rush/build.sh diff --git a/packages/rush/build.sh b/packages/rush/build.sh new file mode 100644 index 000000000..f905c6334 --- /dev/null +++ b/packages/rush/build.sh @@ -0,0 +1,22 @@ +TERMUX_PKG_HOMEPAGE=https://github.com/shenwei356/rush +TERMUX_PKG_DESCRIPTION="A cross-platform command-line tool for executing jobs in parallel" +TERMUX_PKG_LICENSE="MIT" +TERMUX_PKG_MAINTAINER="Krishna kanhaiya @kcubeterm" +TERMUX_PKG_VERSION=0.4.2 +TERMUX_PKG_SRCURL=https://github.com/shenwei356/rush/archive/v${TERMUX_PKG_VERSION}.tar.gz +TERMUX_PKG_SHA256=801b17e279406c1649b401a2214148d344f673d0a1c9eed1b417655c1fefd114 + +termux_step_make_install() { + termux_setup_golang + + cd "$TERMUX_PKG_SRCDIR" + + export GOPATH="${TERMUX_PKG_BUILDDIR}" + mkdir -p "${GOPATH}/src/github.com/shenwei356" + cp -a "${TERMUX_PKG_SRCDIR}" "${GOPATH}/src/github.com/shenwei356/rush" + cd "${GOPATH}/src/github.com/shenwei356/rush" + go get -d -v + go install + + install -Dm700 $TERMUX_PKG_BUILDDIR/bin/*/rush $TERMUX_PREFIX/bin/ +}