# Maintainer: Daniel Felipe Reis Apolinario <dapolinario@gmail.com>
# Contributor: Bernardo Barros <bernardobarros@NOSPAM.gmail.com>
# Contributor: Robson R S Peixoto <robsonpeixoto@gmail.com>
# Maintainer (Parabola): André Silva <andre.paulista@adinet.com.uy>

pkgname=hunspell-pt-br
pkgver=2.0.9
pkgrel=1
pkgdesc="Portuguese (Brazil) hunspell dictionary"
arch=(any)
url="http://www.broffice.org/verortografico/"
license=('LGPL-2.1')
optdepends=('hunspell:  the spell checking libraries and apps')
source=(http://www.broffice.org/files/Vero_pt_BR_V209AOC.oxt)

build() {
  cd ${srcdir}
  install -D -m644 pt_BR.dic      $pkgdir/usr/share/hunspell/pt_BR.dic
  install -D -m644 pt_BR.aff      $pkgdir/usr/share/hunspell/pt_BR.aff
  mkdir -p $pkgdir/usr/share/myspell/dicts
  cd $pkgdir/usr/share/myspell/dicts

  ln -s /usr/share/hunspell/pt_BR.dic pt_BR.dic
  ln -s /usr/share/hunspell/pt_BR.aff pt_BR.aff
}

md5sums=('47313490f1a21c87b6d5fb5655042e22')