# $Id: PKGBUILD 151526 2012-02-27 15:11:05Z pierre $
# Maintainer: AndyRTR <andyrtr@archlinux.org>
# Contributor: György Balló <ballogy@freestart.hu>

pkgname=hyphen-hu
pkgver=20100506
pkgrel=2
pkgdesc="Hungarian hyphenation rules"
arch=('any')
url="http://extensions.services.openoffice.org/project/hu_dicts"
license=('LGPL' 'GPL' 'MPL')
optdepends=('hyphen: offers hyphenation library functions')
source=("http://vesta.informatik.rwth-aachen.de/ftp/pub/mirror/OpenOffice/contrib/dictionaries/hyph_hu_HU.zip")
md5sums=('cc64cb3304aed59ca3fcf32f73d06134')

package() {
  cd "$srcdir"
  install -Dm0644 hyph_hu_HU.dic $pkgdir/usr/share/hyphen/hyph_hu_HU.dic

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

  install -Dm0644 README_hyph_hu_HU.txt $pkgdir/usr/share/doc/$pkgname/README_hyph_hu_HU.txt
}

