summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d35308cebe0f00b2f2249a9b6af57b9ce4cb9d99 (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
30
# Maintainer: Maƫl Kerbiriou <m431.kerbiriou@gmail.com>

pkgname=nix-zsh-completions-git
_pkgname=nix-zsh-completions
pkgver=0.4.3.r4.g275114f
pkgrel=1
pkgdesc="ZSH Completions for Nix"
arch=(any)
url="https://github.com/spwhitt/nix-zsh-completions"
license=(BSD)
depends=(zsh)
makedepends=(git)
provides=("${_pkgname}")
conflicts=("${_pkgname}")

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

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

package() {
	cd "${srcdir}/${_pkgname}"
	install -m0644 -Dt "${pkgdir}/usr/share/zsh/site-functions" _*
	install -m0644 -Dt "${pkgdir}/usr/share/licenses/${pkgname}" LICENSE
}

# vim: set noet ff=unix: