21 lines
720 B
Bash
21 lines
720 B
Bash
TERMUX_PKG_HOMEPAGE=https://hub.github.com/
|
|
TERMUX_PKG_DESCRIPTION="Command-line wrapper for git that makes you better at GitHub"
|
|
TERMUX_PKG_LICENSE="MIT"
|
|
TERMUX_PKG_VERSION=2.12.0
|
|
TERMUX_PKG_SRCURL=https://github.com/github/hub/archive/v${TERMUX_PKG_VERSION}.tar.gz
|
|
TERMUX_PKG_SHA256=937e0ea3ba6dcc8030889d987313efa4da27b6c54ed20fb40fbf5ff9df4c3780
|
|
TERMUX_PKG_DEPENDS="git"
|
|
|
|
termux_step_make_install() {
|
|
termux_setup_golang
|
|
|
|
cd $TERMUX_PKG_SRCDIR
|
|
|
|
export GOPATH="${TERMUX_PKG_BUILDDIR}"
|
|
mkdir -p "${GOPATH}/src/github.com/github"
|
|
cp -a "${TERMUX_PKG_SRCDIR}" "${GOPATH}/src/github.com/github/hub"
|
|
cd "${GOPATH}/src/github.com/github/hub"
|
|
make bin/hub prefix=$TERMUX_PREFIX
|
|
cp ./bin/hub $TERMUX_PREFIX/bin/hub
|
|
}
|