1 # Contributor: Kevin Brubeck Unhammer <unhammer@gmail.com>
2 # Maintainer: Kevin Brubeck Unhammer <unhammer@gmail.com>
5 pkgver=1.0beta9.20110318
7 pkgdesc="Southern Sámi / Åarjelsaemien gïele (sma) dictionary for Hunspell"
9 url="http://www.divvun.no/en/userdocs/X-spell/install_linux.html"
12 # Can't find a static link to the file of this pkgver, so this PKGBUILD might eventually need changes
13 source=(http://divvun.no/static_files/hunspell-smi.tar.gz)
14 md5sums=('0e568da241f65dbe2771c2b314aae319')
17 cd $srcdir/hunspell-smi-$pkgver/
18 make -f Makefile.smi || return 1
19 make DESTDIR=$startdir/pkg -f Makefile.smi install || return 1
21 # Ensure that LibreOffice finds them:
22 mkdir -p $startdir/pkg/usr/share/hunspell
23 ln -s $startdir/pkg/usr/share/myspell/dicts/sma{,_NO,_SE}.{dic,aff} $startdir/pkg/usr/share/hunspell/
25 # Remove the dictionaries we don't need (separate packages for them):
26 rm -f $startdir/pkg/usr/share/myspell/dicts/se{,_NO,_SE,_FI}.{dic,aff}
27 rm -f $startdir/pkg/usr/share/myspell/dicts/smj{,_NO,_SE}.{dic,aff}
29 # I believe dictionary.lst should be a user-configurable file, in
30 # any case it would get overwritten if new packages wanted to do the
31 # same thing, and the dictionaries seems to work without this:
32 rm -f $startdir/pkg/usr/share/myspell/dicts/dictionary.lst