diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 25 |
1 files changed, 16 insertions, 9 deletions
@@ -1,21 +1,28 @@ # Maintainer: Sebastien Leduc <sebastien@sleduc.fr> # Contributor: Adam Russell <adamlr6+arch@gmail.com> pkgname=vim-pep8 -pkgver=0.3.1 -pkgrel=3 -_scriptid=14366 +pkgver=1.1 +pkgrel=1 pkgdesc="A PEP 8 Python source file checker for Vim" arch=('any') url="http://www.vim.org/scripts/script.php?script_id=2914" license=('unknown') depends=('vim' 'python-pycodestyle') groups=('vim-plugins') -source=(pep8.vim::"http://www.vim.org/scripts/download_script.php?src_id=$_scriptid") -md5sums=('393df8ac20d34f2ea8ec48420eac414e') +source=("https://github.com/nvie/vim-pep8/archive/${pkgver}.tar.gz") +md5sums=('7b36dd34665495110a8627131e83a730') + +prepare() { + cd "$srcdir/${pkgname}-${pkgver}" + sed -i -e 's/s:pep8_cmd="pep8"/s:pep8_cmd="pycodestyle"/g' \ + "ftplugin/python_pep8.vim" + +} package() { - cd "$srcdir" - local _installpath="${pkgdir}/usr/share/vim/vimfiles" - install -D -m644 pep8.vim \ - ${_installpath}/ftplugin/python/pep8.vim + cd "$srcdir/${pkgname}-${pkgver}" + local _installpath="${pkgdir}/usr/share/vim/vimfiles" + install -D -m644 ftplugin/python_pep8.vim \ + ${_installpath}/ftplugin/python/python_pep8.vim } +# vim:set ts=2 sw=2 et: |