summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Lisin2020-03-26 17:55:22 +0100
committerMatthias Lisin2020-03-26 17:55:22 +0100
commit5af78543921d9e2bf4132c1763d5877c4a5fbc31 (patch)
tree46339a17ae3d7e91e45a08b33d591f23b4963d7a
downloadaur-5af78543921d9e2bf4132c1763d5877c4a5fbc31.tar.gz
newpkg: vim-ansible-git
-rw-r--r--.SRCINFO20
-rw-r--r--.gitignore5
-rw-r--r--PKGBUILD36
3 files changed, 61 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..88f0c0e785e
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = vim-ansible-git
+ pkgdesc = A vim plugin for syntax highlighting Ansible's common filetypes
+ pkgver = 2.1.r0.g8da127b
+ pkgrel = 1
+ url = https://github.com/pearofducks/ansible-vim
+ arch = any
+ groups = vim-plugins
+ license = MIT
+ license = BSD
+ makedepends = git
+ makedepends = ansible
+ depends = vim
+ optdepends = vim-ultisnips: completion support
+ provides = vim-ansible
+ conflicts = vim-ansible
+ source = vim-ansible-git::git+https://github.com/pearofducks/ansible-vim.git
+ sha256sums = SKIP
+
+pkgname = vim-ansible-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..1f3ebdb2683
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+/vim-ansible-git/
+/pkg/
+/src/
+/*.log
+/*.pkg.tar.*
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ee153716029
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,36 @@
+# Maintainer: ml <ml@visu.li>
+# Contributor: Hugo Rodrigues <me@hugorodrigues.net>
+pkgname=vim-ansible-git
+pkgver=2.1.r0.g8da127b
+pkgrel=1
+pkgdesc="A vim plugin for syntax highlighting Ansible's common filetypes"
+arch=('any')
+url='https://github.com/pearofducks/ansible-vim'
+license=('MIT' 'BSD')
+groups=('vim-plugins')
+depends=('vim')
+makedepends=('git' 'ansible')
+optdepends=('vim-ultisnips: completion support')
+provides=('vim-ansible')
+conflicts=('vim-ansible')
+source=("${pkgname}::git+${url}.git")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "$pkgname"
+ git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ cd "$pkgname"
+ python UltiSnips/generate.py
+}
+
+package() {
+ cd "$pkgname"
+ for i in ftdetect ftplugin indent syntax; do
+ install -Dm644 -t "${pkgdir}/usr/share/vim/vimfiles/${i}" "$i"/*.vim
+ done
+ install -Dm644 -t "${pkgdir}"/usr/share/vim/vimfiles/snippets ansible.snippets
+ install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname}" LICENSE syntax/jinja2.vim_LICENSE
+}