# $Id: PKGBUILD 93580 2013-07-05 19:53:23Z bpiotrowski $
# Maintainer:  Bartłomiej Piotrowski <barthalion@gmail.com>
# Contributor: Maciej Sitarz <macieks@freesco.pl>

pkgname=hyphen-pl
pkgver=20081206
pkgrel=1
pkgdesc='Polish hyphenation rules'
arch=('any')
url='http://extensions.services.openoffice.org/en/project/pl-dict'
license=('LGPL')
optdepends=('hyphen: offers hyphenation library functions')
source=(http://downloads.sourceforge.net/aoo-extensions/pl-dict.oxt)
md5sums=('1f329cf38a84cb21a2e84a26e125dbc3')

package() {
  install -dm755 ${pkgdir}/usr/share/hyphen
  install -m644 hyph_pl_PL.dic ${pkgdir}/usr/share/hyphen

  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
}
