gh: include version number in build
This commit is contained in:
parent
718f2df60a
commit
b968cb2837
@ -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=1.9.2
|
||||
TERMUX_PKG_REVISION=1
|
||||
TERMUX_PKG_SRCURL=https://github.com/cli/cli/archive/v${TERMUX_PKG_VERSION}.tar.gz
|
||||
TERMUX_PKG_SHA256=a1d5a326c9311f8d208a0e5b5ba47023c3982494063e34ea10da916f9b8ba5c3
|
||||
|
||||
@ -21,7 +22,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
|
||||
go build -ldflags="-X github.com/cli/cli/internal/build.Version=$TERMUX_PKG_VERSION"
|
||||
}
|
||||
|
||||
termux_step_make_install() {
|
||||
|
Loading…
Reference in New Issue
Block a user