updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / vim-pydiction / PKGBUILD
blob318e2ec89213023398c4a8dd252ab7fd5ff3c4d6
1 # Maintainer: nblock <nblock [/at\] archlinux DOT us>
2 # Contributor: Florian Friesdorf <archlinux@chaoflow.net>
3 # Contributor: Laszlo Papp <djszapi @ gmail at com>
5 pkgname=vim-pydiction
6 pkgver=1.2
7 _scriptid=11062
8 pkgrel=7
9 pkgdesc="Allows you to auto-complete your Python code"
10 arch=('any')
11 url="http://www.vim.org/scripts/script.php?script_id=850"
12 license=('BSD')
13 groups=('vim-plugins')
14 depends=('vim' 'python2')
15 install=vimdoc.install
16 source=(${pkgname}.zip::http://www.vim.org/scripts/download_script.php?src_id=${_scriptid} COPYING)
17 md5sums=('cf9e82b6990f84b510300850a5144b2e' 'f37dcb13080264307e058074300f2730')
19 build() {
20   cd ${srcdir}/pydiction-${pkgver}
22   #enforce python2
23   sed -i -e 's|#!\s*/usr/bin/python[^\d.]*$|#!/usr/bin/python2|' \
24     -e 's|#!\s*/usr/bin/env python[^\d.]*$|#!/usr/bin/env python2|' \
25     $(find . -name '*.py')
27   install -Dm755 ${srcdir}/pydiction-${pkgver}/pydiction.py ${pkgdir}/usr/bin/pydiction.py
28   install -Dm644 ${srcdir}/pydiction-${pkgver}/complete-dict ${pkgdir}/usr/share/pydiction/complete-dict
29   install -Dm644 ${srcdir}/pydiction-${pkgver}/python_pydiction.vim ${pkgdir}/usr/share/vim/vimfiles/ftplugin/python_pydiction.vim
30   install -Dm644 ${srcdir}/pydiction-${pkgver}/README.txt ${pkgdir}/usr/share/doc/${pkgname}/README.txt
31   install -Dm644 ${srcdir}/COPYING ${pkgdir}/usr/share/licenses/${pkgname}/COPYING
34 # vim:set ts=2 sw=2 et: