From e57940c0b0b956fbf670f20b4b1b1db8457eed0b Mon Sep 17 00:00:00 2001 From: Marcin Puc Date: Wed, 5 Oct 2022 14:12:55 +0200 Subject: [PATCH] github-cli: update to 2.17.0 --- srcpkgs/github-cli/template | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/srcpkgs/github-cli/template b/srcpkgs/github-cli/template index 7b7db9b4e88..88ffda6520b 100644 --- a/srcpkgs/github-cli/template +++ b/srcpkgs/github-cli/template @@ -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 }