1 # Maintainer: Bruno Pagani <archange@archlinux.org>
3 pkgname=vim-grammalecte
6 pkgdesc="Integrates Grammalecte into Vim"
8 url="https://github.com/dpelle/vim-Grammalecte"
10 depends=(vim grammalecte)
12 _commit=09d4b246285cbfafa1f06248c12a229f8160360d
13 source=("${url}/archive/${_commit}/${pkgname}-${pkgver}.zip")
14 sha256sums=('493fb20bff4291a790bf1bf3c7d76eb8b8889e2801594cc122f2031afdff96d8')
17 cd ${pkgname/-g/-G}-${_commit}
18 install -d "${pkgdir}"/usr/share/vim/vimfiles
19 cp -r doc plugin "${pkgdir}"/usr/share/vim/vimfiles/
20 # Fix default path to the cli tool
21 sed -i "s:\$HOME . '/grammalecte/pythonpath/cli.py':'/usr/bin/grammalecte-cli':" "${pkgdir}"/usr/share/vim/vimfiles/plugin/Grammalecte.vim