blob: 4fb4865170596bc59884535560c167ef7f49aa34 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# Maintainer: Andrii Burkivskyi <buryk212@gmail.com>
_gitname='zsh-completion-generator'
pkgname="${_gitname}-git"
pkgver=r35.6eb6392
pkgrel=4
pkgdesc="Plugin that generates completion functions automatically from getopt-style help texts."
arch=('any')
url="https://github.com/RobSis/zsh-completion-generator"
license=('GPL')
depends=('zsh' 'python')
makedepends=('git')
provides=('zsh-completion-generator')
conflicts=('zsh-completion-generator')
source=('git+https://github.com/RobSis/zsh-completion-generator.git')
install=zsh-completion-generator-git.install
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/${_gitname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
cd "${srcdir}/${_gitname}"
install -Dm755 zsh-completion-generator.plugin.zsh "${pkgdir}/${HOME}/.zsh/${_gitname}/zsh-completion-generator.plugin.zsh"
install -Dm755 help2comp.py "${pkgdir}/${HOME}/.zsh/${_gitname}/help2comp.py"
install -Dm644 README.md "${pkgdir}/usr/share/doc/${_gitname}/README.md"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|