summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9cf6df228b2366ef5ceb53a4132c9950c33971a9 (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: Alexandre `zopieux` Macabies <web+oss@zopieux.com>

pkgname=vim-nix-git
pkgver=r110.7d23e97
pkgrel=1
pkgdesc="Nix support for Vim"
arch=('any')
url='https://github.com/LnL7/vim-nix'
license=('MIT')
makedepends=('git')
depends=('vim')
source=('git+https://github.com/LnL7/vim-nix.git')
sha256sums=('SKIP')

pkgver() {
	cd "$srcdir/${pkgname%-git}"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
	cd "$srcdir/${pkgname%-git}"
	declare -r vimfiles="$pkgdir/usr/share/vim/vimfiles"
	for component in compiler ftdetect ftplugin indent plugin syntax
	do
		for file in $component/*
		do
			install -D -m644 "$file" "$vimfiles/$file"
		done
	done
}