summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChocobo12022-10-31 14:36:38 +0800
committerChocobo12022-10-31 14:43:20 +0800
commitbd70d831203cd41d8d91b4be0ef312dbd8412e36 (patch)
tree226360f9ec84df026c92dfe9992a9201ca02025a
parente374bf51ec03f3ef62f1d458c253d5459bb82e1b (diff)
downloadaur-github-cli-git.tar.gz
upgpkg: github-cli-git 2.18.1.r33.g9ea76237-2
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD17
2 files changed, 14 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 2efb73304696..7dd1e0af634e 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = github-cli-git
pkgdesc = The GitHub CLI tool
pkgver = 2.18.1.r33.g9ea76237
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/cli/cli
arch = i686
arch = x86_64
diff --git a/PKGBUILD b/PKGBUILD
index 9111d3f6b8be..e6c1b5ce648c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=github-cli-git
pkgver=2.18.1.r33.g9ea76237
-pkgrel=1
+pkgrel=2
pkgdesc="The GitHub CLI tool"
arch=('i686' 'x86_64')
url="https://github.com/cli/cli"
@@ -32,8 +32,6 @@ pkgver() {
build() {
cd "cli"
- go build \
- ./cmd/gh
make manpages
}
@@ -47,7 +45,18 @@ check() {
package() {
cd "cli"
- install -Dm755 "gh" -t "$pkgdir/usr/bin"
+ GOBIN="$pkgdir/usr/bin" \
+ go install ./cmd/gh
+
+ install -d \
+ "$pkgdir/usr/share/bash-completion/completions" \
+ "$pkgdir/usr/share/fish/vendor_completions.d" \
+ "$pkgdir/usr/share/zsh/site-functions"
+
+ "$pkgdir/usr/bin/gh" completion -s bash > "$pkgdir/usr/share/bash-completion/completions/gh"
+ "$pkgdir/usr/bin/gh" completion -s fish > "$pkgdir/usr/share/fish/vendor_completions.d/gh.fish"
+ "$pkgdir/usr/bin/gh" completion -s zsh > "$pkgdir/usr/share/zsh/site-functions/_gh"
+
cp -r "share" "$pkgdir/usr"
install -Dm644 "README.md" -t "$pkgdir/usr/share/doc/github-cli"
install -Dm644 "LICENSE" -t "$pkgdir/usr/share/licenses/github-cli"