github-cli: update to 2.17.0
This commit is contained in:
parent
5c4561588b
commit
e57940c0b0
|
@ -1,6 +1,6 @@
|
|||
# Template file for 'github-cli'
|
||||
pkgname=github-cli
|
||||
version=2.16.1
|
||||
version=2.17.0
|
||||
revision=1
|
||||
wrksrc="cli-${version}"
|
||||
build_style=go
|
||||
|
@ -13,7 +13,7 @@ license="MIT"
|
|||
homepage="https://cli.github.com"
|
||||
changelog="https://github.com/cli/cli/releases"
|
||||
distfiles="https://github.com/cli/cli/archive/refs/tags/v${version}.tar.gz"
|
||||
checksum=ed42d919d22b33c60d7c4243ac37cc1127e342817e563038aeba2e2a3f93ed81
|
||||
checksum=0e8db6dbb148a899db45f4dc8165644f6361d9bd6d088aa7633368b3baedbe54
|
||||
|
||||
pre_build() {
|
||||
local _date
|
||||
|
@ -23,19 +23,15 @@ pre_build() {
|
|||
fi
|
||||
}
|
||||
|
||||
post_build() {
|
||||
CGO_ENABLED=0 GOARCH="" go run script/build.go manpages
|
||||
gh=$(find $GOPATH/bin -name gh)
|
||||
for shell in bash fish zsh; do
|
||||
vtargetrun $gh completion -s $shell > github-cli.$shell
|
||||
done
|
||||
}
|
||||
|
||||
post_install() {
|
||||
vlicense LICENSE
|
||||
|
||||
CGO_ENABLED=0 GOARCH="" go run script/build.go manpages
|
||||
vcopy share/man usr/share
|
||||
|
||||
GH="${DESTDIR}/usr/bin/gh"
|
||||
for shell in bash fish zsh; do
|
||||
vtargetrun ${GH} completion -s $shell > github-cli.$shell
|
||||
vcompletion github-cli.$shell $shell gh
|
||||
done
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue