summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cf0f60f5cda57e4877b05c01bf76f15a3a764c53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Contributor: Kevin Brubeck Unhammer <unhammer@gmail.com>
# Maintainer: Kevin Brubeck Unhammer <unhammer@gmail.com>

pkgname=hunspell-sma
pkgver=1.0beta9.20110318
pkgrel=1
pkgdesc="Southern Sámi / Åarjelsaemien gïele (sma) dictionary for Hunspell"
arch=('i686' 'x86_64')
url="http://www.divvun.no/en/userdocs/X-spell/install_linux.html"
license=('GPL')
depends=('hunspell')
# Can't find a static link to the file of this pkgver, so this PKGBUILD might eventually need changes
source=(http://divvun.no/static_files/hunspell-smi.tar.gz)
md5sums=('0e568da241f65dbe2771c2b314aae319')

build() {
  cd $srcdir/hunspell-smi-$pkgver/
  make -f Makefile.smi || return 1
  make DESTDIR=$startdir/pkg -f Makefile.smi install || return 1

  # Ensure that LibreOffice finds them:
  mkdir -p $startdir/pkg/usr/share/hunspell
  ln -s $startdir/pkg/usr/share/myspell/dicts/sma{,_NO,_SE}.{dic,aff} $startdir/pkg/usr/share/hunspell/

  # Remove the dictionaries we don't need (separate packages for them):
  rm -f $startdir/pkg/usr/share/myspell/dicts/se{,_NO,_SE,_FI}.{dic,aff}
  rm -f $startdir/pkg/usr/share/myspell/dicts/smj{,_NO,_SE}.{dic,aff}

  # I believe dictionary.lst should be a user-configurable file, in
  # any case it would get overwritten if new packages wanted to do the
  # same thing, and the dictionaries seems to work without this:
  rm -f $startdir/pkg/usr/share/myspell/dicts/dictionary.lst
}