blob: 85e4c4e534e6a1d7364e9bf46287d6524925b521 (
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
36
37
38
39
40
41
42
43
44
45
46
|
# Maintainer: la Fleur <lafleur at boum dot org>
pkgname=vim-mesonic-git
pkgver=r76.69a3a1e
pkgrel=1
pkgdesc="lets you use meson and ninja with ':make' in vim ; see ':help mesonic'"
arch=('i686' 'x86_64')
url="https://github.com/igankevich/mesonic"
license=('unknown')
depends=('meson')
optdepends=('vim' 'neovim' 'vim-syntastic')
makedepends=('git')
provides=('vim-mesonic')
conflicts=('vim-mesonic')
groups=('vim-plugins')
source=("$pkgname"::'git+https://github.com/igankevich/mesonic' "mesonic-ftdetect.vim")
md5sums=('SKIP' '96ad7cc96c944ce67a6efc8bb83ae991')
pkgver() {
cd "$srcdir/$pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
local _installpath="${pkgdir}/usr/share/vim/vimfiles"
install -d "${_installpath}"
# The meson package alreday pulls ftdetect, indent and syntax meson.vim files
# in _installpath vimfiles, so we'll workaround the package name.
cd "$srcdir"
install -D -m644 mesonic-ftdetect.vim "${_installpath}/ftdetect/mesonic.vim"
cd "$pkgname"
for folder in compiler ftdetect ftplugin indent plugin syntax
do
install -D -m644 ${folder}/meson.vim "${_installpath}/${folder}/mesonic.vim"
done
# We'll write meson.vim files for compiler settings since the meson pkg doesn't.
# We don't copy syntax_checkers over, suggested vim-syntastic has them all.
cp -r -t "${_installpath}" compiler doc
msg "The doc is available in vim at ':help mesonic'."
}
|