blob: ea1ef8ca42fbbda88187d663ab97185346633bb6 (
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: Brian Bidulock <bidulock@openss7.org>
pkgname=yang-vim
_pkgname=yang.vim
pkgver=r40.0edaeb6
pkgrel=1
pkgdesc="YANG syntax plugin for vim"
arch=('any')
url="http://github.com/nathanalderson/$_pkgname"
license=('GPL')
depends=('vim')
makedepends=('git')
source=("$pkgname::git+https://github.com/nathanalderson/$_pkgname")
md5sums=('SKIP')
pkgver() {
cd "$pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
cd "$pkgname"
install -Dm 644 ftdetect/yang.vim "$pkgdir/usr/share/vim/vim82/ftdetect/yang.vim"
install -Dm 644 ftplugin/yang.vim "$pkgdir/usr/share/vim/vim82/ftplugin/yang.vim"
install -Dm 644 indent/yang.vim "$pkgdir/usr/share/vim/vim82/indent/yang.vim"
install -Dm 644 syntax/yang.vim "$pkgdir/usr/share/vim/vim82/syntax/yang.vim"
}
# vim:set ts=2 sw=2 et:
|