summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Wagie2020-07-13 15:46:52 -0600
committerMark Wagie2020-07-13 15:46:52 -0600
commit8d27594dfcea8886041bc07577289075e5cfb4bb (patch)
tree4befc700e376802e54c32b59581cdb8307c51874
parent0fcdc945db3ad630b3dbca20ce0afecb03f5dd02 (diff)
downloadaur-8d27594dfcea8886041bc07577289075e5cfb4bb.tar.gz
install zsh completion to doc
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD10
2 files changed, 8 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 12dea1851c8e..11681b47f464 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = cheat-git
pkgdesc = Allows you to create and view interactive cheatsheets on the command-line
- pkgver = 4.0.1.r0.g278a5d9
+ pkgver = 4.0.2.r0.gad7ad64
pkgrel = 1
url = https://github.com/cheat/cheat
arch = any
diff --git a/PKGBUILD b/PKGBUILD
index 3351df41d2a6..ce6e87feedc8 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
# Contributor: Bogdan <d0xi at inbox dot ru>
# Contributor: Quan Guo <guotsuan@gmail.com>
pkgname=cheat-git
-pkgver=4.0.1.r0.g278a5d9
+pkgver=4.0.2.r0.gad7ad64
pkgrel=1
pkgdesc="Allows you to create and view interactive cheatsheets on the command-line"
arch=('any')
@@ -67,8 +67,12 @@ package() {
"$pkgdir/usr/share/bash-completion/completions/${pkgname%-git}"
install -Dm755 "scripts/${pkgname%-git}.fish" -t \
"$pkgdir/usr/share/fish/completions"
-# install -Dm755 "scripts/${pkgname%-git}.zsh" \
-# "$pkgdir/usr/share/zsh/site-functions/_${pkgname%-git}"
+
+ # 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%-git}.zsh" "$pkgdir/usr/share/doc/${pkgname%-git}/_${pkgname%-git}"
+
+ install -Dm755 "scripts/$pkgname.zsh" "$pkgdir/usr/share/doc/$pkgname/_$pkgname"
install -Dm644 LICENSE.txt \
"$pkgdir/usr/share/licenses/${pkgname%-git}/${pkgname%-git}-LICENSE"
install -Dm644 "doc/${pkgname%-git}.1" -t "$pkgdir/usr/share/man/man1"