archrelease: copy trunk to community-any
[ArchLinux/community.git] / vim-ultisnips / repos / community-any / PKGBUILD
blob49a9cc76a68477c44db11f961c62cf52605a5612
1 # Maintainer: Morten Linderud <foxboron@archlinux.org>
2 # Contributor: Lukas Fleischer <lfleischer@archlinux.org>
3 # Contributor: Sven-Hendrik Haase <sh@lutzhaase.com>
5 pkgname=vim-ultisnips
6 pkgver=3.2
7 pkgrel=7
8 pkgdesc='TextMate-style snippets for Vim.'
9 arch=('any')
10 url='https://github.com/SirVer/ultisnips'
11 license=('GPL3')
12 depends=('vim' 'python')
13 groups=('vim-plugins')
14 replaces=('vim-snipmate')
15 makedepends=('git')
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'
20             'SKIP')
22 package() {
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 {} +