updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / hyphen-nn / PKGBUILD
blob35cbffd1ed23950d4fd0025a2c28b2493c2da761
1 # Made using hunspell-uk package as template
2 pkgname=('hyphen-nn')
3 pkgver=1.1
4 pkgrel=1
5 pkgdesc="Norwegian Nynorsk hyphenation rules"
6 arch=(any)
7 url="http://wiki.services.openoffice.org/wiki/Dictionaries"
8 license=('custom')
9 optdepends=('hyphen: offers hyphenation library functions')
10 source=(http://ftp.osuosl.org/pub/openoffice/contrib/dictionaries/hyph_nn_NO.zip)
11 md5sums=('ec8ace1cc23861b532ad8ff25ef95c3f')
13 package() {
15   cd "$srcdir"
16   install -dm755 ${pkgdir}/usr/share/hyphen
17   #cp -p hyph_nn_NO.dic $pkgdir/usr/share/hyphen
18   install -m 644 hyph_nn_NO.dic $pkgdir/usr/share/hyphen
20   install -dm755 ${pkgdir}/usr/share/myspell/dicts
21   pushd $pkgdir/usr/share/myspell/dicts
22     for file in $pkgdir/usr/share/hyphen/*; do
23       ln -sv /usr/share/hyphen/$(basename $file) .
24     done
25   popd
26   
27   install -dm755 ${pkgdir}/usr/share/doc/$pkgname
28   install -m 644 README_hyph_nn_NO.txt $pkgdir/usr/share/doc/$pkgname