# $Id: PKGBUILD 142175 2011-11-05 16:28:05Z ibiru $
# Maintainer: Ionut Biru <ibiru@archlinux.org>

pkgname=hunspell-ro
pkgver=3.3.7
pkgrel=1
pkgdesc="Romanian dictionary for Hunspell"
arch=('any')
url="http://sourceforge.net/projects/rospell/"
license=('LGPL' 'GPL' 'MPL')
depends=('hunspell')
source=(http://downloads.sourceforge.net/rospell/ro_RO.$pkgver.zip)
md5sums=('32fe2743feeae0af7d239883dbb7a68f')

build() {
  cd "$srcdir"
  install -dm755 $pkgdir/usr/share/hunspell

  install -D -m644 ro_RO.dic "$pkgdir/usr/share/hunspell/ro_RO.dic"
  install -D -m644 ro_RO.aff "$pkgdir/usr/share/hunspell/ro_RO.aff"

 # the symlinks
  install -dm755 $pkgdir/usr/share/myspell/dicts
  pushd $pkgdir/usr/share/myspell/dicts
    for file in $pkgdir/usr/share/hunspell/*; do
      ln -sv /usr/share/hunspell/$(basename $file) .
    done
  popd
}
