summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0c12b1b591a501d0bccf0e64d02614e0bf41357d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#Maintainer: giniu < gginiu@gmail.com >

pkgname=vim-languagetool
pkgver=1.30
_scriptid=3223
_srcid=24588
pkgrel=1
pkgdesc="Grammar checker for English, French, German (etc.) in Vim"
arch=(any)
url="http://www.vim.org/scripts/script.php?script_id=${_scriptid}"
license=('custom')
depends=('vim' 'languagetool')
makedepends=('unzip')
groups=('vim-plugins')
install=vimdoc.install

source=(LanguageTool.zip::http://www.vim.org/scripts/download_script.php?src_id=${_srcid}
        languagetool.patch license.txt)
md5sums=('06896aaba33dd38c4c2ca78f639b3d8a'
         'a315ba8727e49c2db80eacd2445fabf7'
         'f49a1270c8ead84829517d3a625e1d83')

build() {
  cd "${srcdir}"

  patch -p0 < languagetool.patch
}

package() {
  cd "${srcdir}"

  install -Dm755 doc/LanguageTool.txt "${pkgdir}"/usr/share/vim/vimfiles/doc/LanguageTool.txt
  install -Dm755 plugin/LanguageTool.vim "${pkgdir}"/usr/share/vim/vimfiles/plugin/LanguageTool.vim
  install -Dm755 license.txt "${pkgdir}"/usr/share/licenses/${pkgname}/license.txt
}