[arch-commits] Commit in github-cli/trunk (PKGBUILD)
Eli Schwartz
eschwartz at archlinux.org
Wed Jul 29 23:29:29 UTC 2020
Date: Wednesday, July 29, 2020 @ 23:29:28
Author: eschwartz
Revision: 665855
github-cli: move completion generation to build
Modified:
github-cli/trunk/PKGBUILD
----------+
PKGBUILD | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-07-29 23:27:57 UTC (rev 665854)
+++ PKGBUILD 2020-07-29 23:29:28 UTC (rev 665855)
@@ -25,6 +25,9 @@
export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
make GH_VERSION="v$pkgver" bin/gh manpages
+ bin/gh completion -s bash | install -Dm644 /dev/stdin share/bash-completion/completions/gh
+ bin/gh completion -s zsh | install -Dm644 /dev/stdin share/zsh/site-functions/_gh
+ bin/gh completion -s fish | install -Dm644 /dev/stdin share/fish/vendor_completions.d/gh.fish
}
check(){
@@ -35,12 +38,9 @@
package() {
cd "cli-$pkgver"
install -Dm755 "bin/gh" "$pkgdir/usr/bin/gh"
+ cp -r share/ "$pkgdir"/usr
install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm644 "README.md" "$pkgdir/usr/share/doc/$pkgname/README.md"
- install -Dm644 -t "$pkgdir/usr/share/man/man1/" share/man/man1/*
- bin/gh completion -s bash | install -Dm644 /dev/stdin "$pkgdir/usr/share/bash-completion/completions/gh"
- bin/gh completion -s zsh | install -Dm644 /dev/stdin "$pkgdir/usr/share/zsh/site-functions/_gh"
- bin/gh completion -s fish | install -Dm644 /dev/stdin "$pkgdir/usr/share/fish/vendor_completions.d/gh.fish"
}
More information about the arch-commits
mailing list