summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pcr/vim-pydiction/PKGBUILD28
-rw-r--r--pcr/vim-pydiction/pydiction.install13
2 files changed, 41 insertions, 0 deletions
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 <aurelien@hackers.camp>
+# Contributor: Alireza Savand <alireza.savand@gmail.com>
+# Contributor: lemanyk <lemanyk@gmail.com>
+# Contributor: Florian Friesdorf <archlinux@chaoflow.net>
+# Contributor: Laszlo Papp <djszapi @ gmail at com>
+
+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: