2020-05-10 22:22:57 +02:00
|
|
|
|
TERMUX_PKG_HOMEPAGE=https://cli.github.com/
|
|
|
|
|
TERMUX_PKG_DESCRIPTION="GitHub’s official command line tool"
|
|
|
|
|
TERMUX_PKG_LICENSE="MIT"
|
|
|
|
|
TERMUX_PKG_MAINTAINER="Krishna kanhaiya @kcubeterm"
|
2021-10-25 20:11:06 +02:00
|
|
|
|
TERMUX_PKG_VERSION=2.2.0
|
2020-05-10 22:22:57 +02:00
|
|
|
|
TERMUX_PKG_SRCURL=https://github.com/cli/cli/archive/v${TERMUX_PKG_VERSION}.tar.gz
|
2021-10-25 20:11:06 +02:00
|
|
|
|
TERMUX_PKG_SHA256=597c6c1cde4484164e9320af0481e33cfad2330a02315b4c841bdc5b7543caec
|
2021-10-04 12:43:31 +02:00
|
|
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
2020-11-13 21:24:24 +01:00
|
|
|
|
|
2020-05-10 22:22:57 +02:00
|
|
|
|
termux_step_make() {
|
|
|
|
|
termux_setup_golang
|
|
|
|
|
|
|
|
|
|
cd "$TERMUX_PKG_SRCDIR"
|
2020-06-04 13:50:50 +02:00
|
|
|
|
(
|
|
|
|
|
unset GOOS GOARCH CGO_LDFLAGS
|
|
|
|
|
unset CC CXX CFLAGS CXXFLAGS LDFLAGS
|
|
|
|
|
go run ./cmd/gen-docs --man-page --doc-path $TERMUX_PREFIX/share/man/man1/
|
|
|
|
|
)
|
2020-05-10 22:22:57 +02:00
|
|
|
|
export GOPATH=$TERMUX_PKG_BUILDDIR
|
|
|
|
|
mkdir -p "$GOPATH"/src/github.com/cli/
|
|
|
|
|
mkdir -p "$TERMUX_PREFIX"/share/doc/gh
|
|
|
|
|
cp -a "$TERMUX_PKG_SRCDIR" "$GOPATH"/src/github.com/cli/cli
|
|
|
|
|
cd "$GOPATH"/src/github.com/cli/cli/cmd/gh
|
2021-07-10 16:00:18 +02:00
|
|
|
|
go get -d -v
|
2021-10-15 09:33:51 +02:00
|
|
|
|
go build -ldflags="-X github.com/cli/cli/v${TERMUX_PKG_VERSION%%.*}/internal/build.Version=$TERMUX_PKG_VERSION"
|
2020-05-10 22:22:57 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
termux_step_make_install() {
|
|
|
|
|
install -Dm700 -t "$TERMUX_PREFIX"/bin "$GOPATH"/src/github.com/cli/cli/cmd/gh/gh
|
|
|
|
|
install -Dm600 -t "$TERMUX_PREFIX"/share/doc/gh/ "$TERMUX_PKG_SRCDIR"/docs/*
|
|
|
|
|
}
|