github-cli: add manpages

fixes #36689
This commit is contained in:
classabbyamp 2022-04-14 13:04:10 -04:00 committed by Leah Neukirchen
parent 5a36406299
commit f27382d6ef

View file

@ -1,7 +1,7 @@
# Template file for 'github-cli'
pkgname=github-cli
version=2.8.0
revision=1
revision=2
wrksrc="cli-${version}"
build_style=go
build_helper=qemu
@ -24,6 +24,7 @@ pre_build() {
}
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
@ -33,6 +34,7 @@ post_build() {
post_install() {
vlicense LICENSE
vcopy share/man usr/share
for shell in bash fish zsh; do
vcompletion github-cli.$shell $shell gh
done