updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / vim-python-mode / PKGBUILD
bloba06afcd003b4cdc9c9f08c0fe9981b2e0996db6c
1 # Maintainer: Thomas Dziedzic < gostrc at gmail >
3 pkgname=vim-python-mode
4 pkgver=0.5.0
5 pkgrel=1
6 pkgdesc='Python-mode is a vim plugin that allows you to use the pylint, rope, pydoc library in vim to provide features like python code looking for bugs, refactoring and some other useful things.'
7 arch=('any')
8 license=('LGPL3')
9 url='https://github.com/klen/python-mode'
10 install='vim-python-mode.install'
11 depends=('vim' 'python2')
12 makedepends=('git')
14 build() {
15   local _gitroot='git://github.com/klen/python-mode.git'
17   if [[ -d python-mode ]]; then
18     cd python-mode
19     git pull
20   else
21     git clone ${_gitroot}
22     cd python-mode
23   fi
25   git checkout -b ${pkgver}
28 # used for !() remove when pacman 4 finally comes out :DDD
29 shopt -s extglob
31 package() {
32   cd python-mode
34   install -d ${pkgdir}/usr/share/vim/vimfiles/
36   cp -r !(.gitignore|Changelog.rst|README.rst) \
37     ${pkgdir}/usr/share/vim/vimfiles/