archrelease: copy trunk to community-x86_64
[ArchLinux/community.git] / vim-ansible / trunk / PKGBUILD
blobe383fc1568375d44829e5ded5ca4db9d74ad5bfc
1 # Maintainer: David Runge <dvzrv@archlinux.org>
3 _name=ansible-vim
4 pkgname=vim-ansible
5 pkgver=3.2
6 pkgrel=2
7 pkgdesc="A vim plugin for syntax highlighting Ansible's common filetypes"
8 arch=(any)
9 url="https://github.com/pearofducks/ansible-vim"
10 license=(
11   BSD
12   MIT
14 groups=(vim-plugins)
15 depends=(
16   python-jinja
17   vim
19 makedepends=(
20   ansible
21   python
23 optdepends=('vim-ultisnips: for ansible snippets')
24 source=($url/archive/$pkgver/$_name-$pkgver.tar.gz)
25 sha512sums=('a75e8b149befb001fdb0012ea8219287a6b4c302e2ae2de456835c48e3a516bb99bfb91a21e2d60eff12b5a24d918510dd9302d93e0bf43cb42f025ea0504d1b')
26 b2sums=('e532b348216f3616060b9e09d177d601534c37eda1305512309954e0480e2827bd6f2d40564151104184a389c495b2442264f34d5b8031a1023ddd093cdd1be6')
28 build() {
29   cd $_name-$pkgver
30   # generating a reproducible UltiSnips snippet file:
31   # https://github.com/pearofducks/ansible-vim/pull/105
32   python UltiSnips/generate.py --style=dictionary
35 package() {
36   cd $_name-$pkgver
37   install -vDm 644 ftdetect/*.vim -t "$pkgdir/usr/share/vim/vimfiles/ftdetect/"
38   install -vDm 644 ftplugin/*.vim -t "$pkgdir/usr/share/vim/vimfiles/ftplugin/"
39   install -vDm 644 indent/*.vim -t "$pkgdir/usr/share/vim/vimfiles/indent/"
40   install -vDm 644 syntax/*.vim -t "$pkgdir/usr/share/vim/vimfiles/syntax/"
41   install -vDm 644 ansible.snippets -t "$pkgdir/usr/share/vim/vimfiles/UltiSnips/"
42   install -vDm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname/"
43   install -vDm 644 syntax/*.vim_LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
44   install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"