termux-packages/packages/hub/build.sh
2019-03-30 00:41:22 +01:00

22 lines
742 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.11.1
TERMUX_PKG_REVISION=1
TERMUX_PKG_SHA256=dfd6531cdd31f004dcbcd2764dea4e1c040e72358ae79758a6c3060b9e743371
TERMUX_PKG_SRCURL=https://github.com/github/hub/archive/v${TERMUX_PKG_VERSION}.tar.gz
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
}