updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / vim-pyflakes-python2 / PKGBUILD
blob4d25022e749fe04fef0d653c38dc12d244fa9494
1 # Contributor: nofrak <nofrak/polattack/com>
2 # Maintainer: HervĂ© Cauwelier <herve/oursours/net>
4 pkgname=vim-pyflakes-python2
5 pkgver=3.01
6 _scriptid=14403
7 pkgrel=2
8 pkgdesc='Vim plugin which highlights common Python errors like misspelling a variable name on the fly.'
9 arch=('any')
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")
14 license=('custom')
15 md5sums=('a6db3f0c44127174cf35dfa6120e9f53')
16 build() {
17   # Explicitly point to Python 2
18   cd $srcdir
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/
24   # License
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
28 # vim:syntax=sh