# $Id: PKGBUILD 166027 2012-09-04 14:53:19Z foutrelis $
# Maintainer: AndyRTR <andyrtr@archlinux.org>
# Contributor: György Balló <ballogy@freestart.hu>

pkgname=hyphen-hu
pkgver=20100506
pkgrel=3
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://extensions.services.openoffice.org/e-files/1283/9/dict-hu.oxt)
md5sums=('d320e43e815c2dfd599dbfb7cd0e41fb')

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
}

