updated on Fri Jan 20 12:03:34 UTC 2012
[aur-mirror.git] / hunspell-nn / PKGBUILD
blob55704ea2f792050cdf22bfce214de0915cbc24df
1 # Made using hunspell-uk package as template
2 pkgname=hunspell-nn
3 pkgver=1.1
4 pkgrel=1
5 pkgdesc="Norwegian Nynorsk dictionary for hunspell"
6 provides=('hunspell-nn')
7 conflicts=('hunspell-nn')
8 replaces=('hunspell-nn')
9 arch=(any)
10 url="http://wiki.services.openoffice.org/wiki/Dictionaries"
11 license=('LGPL')
12 optdepends=('hunspell: the spell checking libraries and apps')
13 source=(http://ftp.osuosl.org/pub/openoffice/contrib/dictionaries/nn_NO.zip)
14 md5sums=('feabbed3baf3a6e40932635aeb3c71c2')
16 package() {
17   cd "$srcdir"
18   install -dm755 ${pkgdir}/usr/share/hunspell
19   install -m 644 nn_NO.dic nn_NO.aff $pkgdir/usr/share/hunspell
21   install -dm755 ${pkgdir}/usr/share/myspell/dicts
22   pushd $pkgdir/usr/share/myspell/dicts
23     for file in $pkgdir/usr/share/hunspell/*; do
24       ln -sv /usr/share/hunspell/$(basename $file) .
25     done
26   popd
28   install -dm755 ${pkgdir}/usr/share/doc/$pkgname
29   install -m 644 README_nn_NO.txt $pkgdir/usr/share/doc/$pkgname