summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD26
-rw-r--r--vim-python-pep8-indent.install8
3 files changed, 50 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..e135934f0aa
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = vim-python-pep8-indent
+ pkgdesc = Vim plugin to improve Python indentation
+ pkgver = r145.60ba5e1
+ pkgrel = 1
+ url = https://github.com/Vimjas/vim-python-pep8-indent
+ install = vim-python-pep8-indent.install
+ arch = any
+ groups = vim-plugins
+ license = custom:Public Domain
+ makedepends = git
+ depends = vim
+ source = vim-python-pep8-indent::git+https://github.com/Vimjas/vim-python-pep8-indent
+ sha512sums = SKIP
+
+pkgname = vim-python-pep8-indent
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..20204aa3c46
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,26 @@
+# Maintainer: Anton Karmanov <bergentroll@insiberia.net>
+pkgname=vim-python-pep8-indent
+pkgver=r145.60ba5e1
+pkgrel=1
+pkgdesc='Vim plugin to improve Python indentation'
+url='https://github.com/Vimjas/vim-python-pep8-indent'
+arch=('any')
+license=('custom:Public Domain')
+depends=('vim')
+makedepends=('git')
+groups=('vim-plugins')
+source=("${pkgname}::git+${url}")
+sha512sums=('SKIP')
+install="${pkgname}.install"
+
+pkgver() {
+ cd ${pkgname}
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+package() {
+ cd ${pkgname}
+ install -Dm 644 COPYING.txt -t "${pkgdir}/usr/share/licenses/${pkgname}/"
+ install -dm 755 "${pkgdir}/usr/share/vim/vimfiles/"
+ cp -dr --no-preserve=ownership indent "${pkgdir}/usr/share/vim/vimfiles/"
+}
diff --git a/vim-python-pep8-indent.install b/vim-python-pep8-indent.install
new file mode 100644
index 00000000000..72faaafdede
--- /dev/null
+++ b/vim-python-pep8-indent.install
@@ -0,0 +1,8 @@
+post_install() {
+ cat << EOF
+==> When using ~/.vimrc you should load defaults.vim first like this:
+
+unlet! skip_defaults_vim
+source $VIMRUNTIME/defaults.vim
+EOF
+}