summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Wagie2020-07-13 15:44:56 -0600
committerMark Wagie2020-07-13 15:44:56 -0600
commit5cd7e96c6b53a80704300fffd3c3f0a59df58b96 (patch)
tree5fa4472611f8a75dd433fb01a90785e35983636f
parent1ac8c2c0647c21cf07cacc4ca10d05403aca374b (diff)
downloadaur-5cd7e96c6b53a80704300fffd3c3f0a59df58b96.tar.gz
install zsh completion to doc
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD6
2 files changed, 6 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 0ae68afccbfc..7cededd0a21e 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = cheat
pkgdesc = Allows you to create and view interactive cheatsheets on the command-line
pkgver = 4.0.2
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/cheat/cheat
arch = any
license = MIT
diff --git a/PKGBUILD b/PKGBUILD
index 5411f8566acd..8ad4ac2c7961 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
# Contributor: Bogdan <d0xi at inbox dot ru>
pkgname=cheat
pkgver=4.0.2
-pkgrel=1
+pkgrel=2
pkgdesc="Allows you to create and view interactive cheatsheets on the command-line"
arch=('any')
url="https://github.com/cheat/cheat"
@@ -52,7 +52,11 @@ package() {
install -Dm755 "scripts/$pkgname.bash" \
"$pkgdir/usr/share/bash-completion/completions/$pkgname"
install -Dm755 "scripts/$pkgname.fish" -t "$pkgdir/usr/share/fish/completions"
+
+ # Conflicts with zsh-suggestions, copy or symlink from the doc folder
# install -Dm755 "scripts/$pkgname.zsh" "$pkgdir/usr/share/zsh/site-functions/_$pkgname"
+ install -Dm755 "scripts/$pkgname.zsh" "$pkgdir/usr/share/doc/$pkgname/_$pkgname"
+
install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/$pkgname-LICENSE"
install -Dm644 "doc/$pkgname.1" -t "$pkgdir/usr/share/man/man1"