From 48dc6f9b6ee1fdd710876986e8f2ea5e40e3b478 Mon Sep 17 00:00:00 2001 From: codex Date: Thu, 11 Dec 2014 08:01:18 +0100 Subject: Allows you to auto-complete your Python code --- pcr/vim-pydiction/PKGBUILD | 28 ++++++++++++++++++++++++++++ pcr/vim-pydiction/pydiction.install | 13 +++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 pcr/vim-pydiction/PKGBUILD create mode 100644 pcr/vim-pydiction/pydiction.install diff --git a/pcr/vim-pydiction/PKGBUILD b/pcr/vim-pydiction/PKGBUILD new file mode 100644 index 000000000..f2cfa4ada --- /dev/null +++ b/pcr/vim-pydiction/PKGBUILD @@ -0,0 +1,28 @@ +# Maintainer : Aurelien Desbrieres +# Contributor: Alireza Savand +# Contributor: lemanyk +# Contributor: Florian Friesdorf +# Contributor: Laszlo Papp + +pkgname=vim-pydiction +pkgver=1.2.3 +_scriptid=21842 +pkgrel=2 +pkgdesc="Allows you to auto-complete your Python code" +arch=('any') +url="http://www.vim.org/scripts/script.php?script_id=850" +license=('BSD') +groups=('vim-plugins') +depends=('vim' 'python2') +install='pydiction.install' +source=(${pkgname}.zip::http://www.vim.org/scripts/download_script.php?src_id=${_scriptid}) + +package() { + cd ${srcdir}/pydiction + + install -Dm755 pydiction.py ${pkgdir}/usr/bin/pydiction.py + install -Dm644 complete-dict ${pkgdir}/usr/share/pydiction/complete-dict + install -Dm644 after/ftplugin/python_pydiction.vim ${pkgdir}/usr/share/vim/vimfiles/ftplugin/python_pydiction.vim + install -Dm644 README.md ${pkgdir}/usr/share/doc/${pkgname}/README.txt +} + diff --git a/pcr/vim-pydiction/pydiction.install b/pcr/vim-pydiction/pydiction.install new file mode 100644 index 000000000..d55731df2 --- /dev/null +++ b/pcr/vim-pydiction/pydiction.install @@ -0,0 +1,13 @@ +post_install() { + echo " Add to your .vimrc file:" + echo "filetype plugin on" + echo "let g:pydiction_location='/usr/share/pydiction/complete-dict'" +} + +post_upgrade() { + echo " Add to your .vimrc file:" + echo "filetype plugin on" + echo "let g:pydiction_location='/usr/share/pydiction/complete-dict'" +} + +# vim:set ts=2 sw=2 et: -- cgit v1.1-4-g5e80