summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cf5b67affadebfe71d8f7cf4fd2266022d3a039c (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
# Maintainer: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>

pkgname=zsh-completions-git
pkgver=0.14.0.r0.g173ae72
pkgrel=1
pkgdesc="Additional completion definitions for Zsh"
arch=(any)
url="https://github.com/zsh-users/zsh-completions"
license=(GPL)
depends=(zsh)
makedepends=(git)
provides=(zsh-completions)
conflicts=(zsh-completions)

source=('git://github.com/zsh-users/zsh-completions.git')
md5sums=('SKIP')

pkgver() {
	cd "$srcdir"/zsh-completions
	git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
	cd "$srcdir"/zsh-completions/src
	install -m0755 -d "$pkgdir"/usr/share/zsh/site-functions
	install -m0644 _* "$pkgdir"/usr/share/zsh/site-functions
}