blob: 7f2a26912926245b53cbf705b04ca52e78fffcfe (
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
31
32
33
34
35
|
# Maintainer: Hugo Rodrigues <me@hugorodrigues.net>
pkgname="ansible-vim-git"
pkgver=20171223
pkgrel=1
pkgdesc="A vim plugin for syntax highlighting Ansible's common filetypes "
arch=('any')
url='https://github.com/pearofducks/ansible-vim'
license=('MIT')
depends=('vim')
makedepends=('git' 'ansible')
source=("${pkgname}::git+${url}.git")
md5sums=('SKIP')
_git_hash="6aac3bd"
pkgver() {
cd "${srcdir}/${pkgname}"
git checkout "${_git_hash}"
echo ${_git_hash}
}
package() {
cd "${srcdir}/${pkgname}"
for _dir in *; do
if [ -d "${_dir}" ] && [ "${_dir}" != "UltiSnips" ]; then
for _file in $(find "${_dir}" -name "*.vim"); do
install -D -m644 "${_file}" "${pkgdir}"/usr/share/vim/vimfiles/"${_file}"
done
fi
done
cd UltiSnips
python2 generate.py
install -D -m644 ansible.snippets "${pkgdir}"/usr/share/vim/vimfiles/snippets/ansible.snippets
}
|