1 # Contributor: nofrak <nofrak/polattack/com>
2 # Maintainer: Hervé Cauwelier <herve/oursours/net>
4 pkgname=vim-pyflakes-python2
8 pkgdesc='Vim plugin which highlights common Python errors like misspelling a variable name on the fly.'
10 url='http://www.vim.org/scripts/script.php?script_id=2441'
11 depends=('vim' 'python2>=2.5')
12 conflicts=('vim-pyflakes')
13 source=("pyflakes-vim.zip::http://www.vim.org/scripts/download_script.php?src_id=$_scriptid")
15 md5sums=('a6db3f0c44127174cf35dfa6120e9f53')
17 # Explicitly point to Python 2
19 sed -i 's/#!\/usr\/bin\/python/#!\/usr\/bin\/python2/g' ftplugin/python/pyflakes/bin/pyflakes
21 mkdir -p $pkgdir/usr/share/vim/vimfiles/after/
22 cp -r ftplugin $pkgdir/usr/share/vim/vimfiles/after/
25 mkdir -p $pkgdir/usr/share/licenses/vim-pyflakes/
26 mv $pkgdir/usr/share/vim/vimfiles/after/ftplugin/python/pyflakes/LICENSE $pkgdir/usr/share/licenses/vim-pyflakes/LICENSE