gh: correctly set version number
This commit is contained in:
parent
3c3a14a7d4
commit
0aeb4f83fd
@ -3,6 +3,7 @@ TERMUX_PKG_DESCRIPTION="GitHub’s 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() {
|
||||
|
Loading…
Reference in New Issue
Block a user