gh: correctly set version number

This commit is contained in:
Lucinda May Phipps 2021-10-15 08:33:51 +01:00 committed by GitHub
parent 3c3a14a7d4
commit 0aeb4f83fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,6 +3,7 @@ TERMUX_PKG_DESCRIPTION="GitHubs official command line tool"
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_MAINTAINER="Krishna kanhaiya @kcubeterm"
TERMUX_PKG_VERSION=2.1.0
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://github.com/cli/cli/archive/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=4b353b121a0f3ddf5046f0a1ae719a0539e0cddef27cc78a1b33ad7d1d22c007
TERMUX_PKG_AUTO_UPDATE=true
@ -22,7 +23,7 @@ termux_step_make() {
cp -a "$TERMUX_PKG_SRCDIR" "$GOPATH"/src/github.com/cli/cli
cd "$GOPATH"/src/github.com/cli/cli/cmd/gh
go get -d -v
go build -ldflags="-X github.com/cli/cli/internal/build.Version=$TERMUX_PKG_VERSION"
go build -ldflags="-X github.com/cli/cli/v${TERMUX_PKG_VERSION%%.*}/internal/build.Version=$TERMUX_PKG_VERSION"
}
termux_step_make_install() {