# Maintainer: Ivan Sichmann Freitas <ivansichfreitas@gmail.com>
# Contributor: Robson R S Peixoto <robsonpeixoto@gmail.com>
# Contributor: Luiz Ribeiro <luizribeiro@gmail.com>
pkgname=vim-spell-pt-vero
pkgver=20120609
pkgrel=1
pkgdesc="VIM spellchecker files for pt using Vero from BrOffice.org."
depends=('vim')
makedepends=('unzip')
arch=('any')
license=('LGPL2.1')
options=('!libtool' '!strip')
conflicts=('vim-spell-pt')
url="http://www.broffice.org/verortografico/baixar"
source=(http://www.broffice.org/files/pt_BR-2012-06-09AOC.zip
http://www.broffice.org/files/pt_PT-2012-06-09AOC.zip)
md5sums=('3d666917e31b75ee3a9cd41a573fa9e6'
'46d152e6ea5819c2cfa804eb4499ced1')
build() {
cd $srcdir
LC_ALL=C vim -u NONE -c "set encoding=latin1" \
-c "mkspell pt pt_BR pt_PT" -c "q"
LC_ALL=C vim -u NONE -c "set encoding=utf-8" \
-c "mkspell pt pt_BR pt_PT" -c "q"
installpath="$pkgdir/usr/share/vim/vimfiles/spell"
mkdir -p $installpath
cp *spl $installpath
}
# vim:set ts=2 sw=2 et: