1 # Maintainer: Morten Linderud <foxboron@archlinux.org>
2 # Contributor: Lukas Fleischer <lfleischer@archlinux.org>
3 # Contributor: Sven-Hendrik Haase <sh@lutzhaase.com>
8 pkgdesc='TextMate-style snippets for Vim.'
10 url='https://github.com/SirVer/ultisnips'
12 depends=('vim' 'python')
13 groups=('vim-plugins')
14 replaces=('vim-snipmate')
16 _commit=2a4beefc7dfff8419f40f2672cfaaa726bdbff72
17 source=("${pkgname}-${pkgver}.tar.gz"::"https://github.com/SirVer/ultisnips/archive/${pkgver}.tar.gz"
18 git+https://github.com/honza/vim-snippets.git#commit=$_commit)
19 sha256sums=('550365cdf6bf030b9e5b77e511b4e6b1427660ea6a117c4b6bb77afcb950c4ce'
23 cd "ultisnips-$pkgver"
25 install -dm755 "$pkgdir/usr/share/vim/vimfiles/"
26 cp -r -t "$pkgdir/usr/share/vim/vimfiles/" pythonx after doc ftdetect autoload\
27 ftplugin plugin syntax
29 cd "${srcdir}/vim-snippets"
31 install -dm755 "$pkgdir/usr/share/vim/vimfiles/"
32 cp -r -t "$pkgdir/usr/share/vim/vimfiles/" UltiSnips autoload snippets pythonx
34 # compile .pyc and .pyo files (fixes FS#43121)
35 find "${pkgdir}" -name '*.py' -exec python -mpy_compile {} +
36 find "${pkgdir}" -name '*.py' -exec python -O -mpy_compile {} +