updated on Sun Jan 15 00:02:00 UTC 2012
[aur-mirror.git] / hunspell-sme / PKGBUILD
blobe67a2607a155642f2413975c8a646708ef8b6b99
1 # Contributor: Kevin Brubeck Unhammer <unhammer@gmail.com>
2 # Maintainer: Kevin Brubeck Unhammer <unhammer@gmail.com>
4 pkgname=hunspell-sme
5 pkgver=1.0beta9.20110318
6 pkgrel=1
7 pkgdesc="Northern Sámi (se/sme) dictionary for Hunspell"
8 arch=('i686' 'x86_64')
9 url="http://www.divvun.no/en/userdocs/X-spell/install_linux.html"
10 license=('GPL')
11 depends=('hunspell')
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')
16 build() {
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/se{,_NO,_SE,_FI}.{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/smj{,_NO,_SE}.{dic,aff}
27   rm -f $startdir/pkg/usr/share/myspell/dicts/sma{,_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