summaryrefslogtreecommitdiff
path: root/~emulatorman/hunspell-gl/PKGBUILD
blob: 210fda175b80110b728d74d7b2c37b14361a1a1e (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
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves@gmail.com>, 2009-2010.
# Contributor (Parabola): André Silva <andre.paulista@adinet.com.uy>

pkgname=hunspell-gl
pkgver=2.9b
pkgrel=1
pkgdesc="Galician spellchecker for Hunspell"
arch=('any')
url="http://trasno.net/"
license=('GPL3')
depends=('hunspell')
source=("http://webs.uvigo.es/miguelsolla/gl_ES.zip")
md5sums=('209fd16dd47e5cb334fa39563d23c79f')

lang="gl"
lang2="gl_ES"

build() {

  # Creation of necesary folders...
  mkdir -p $pkgdir/usr/share/myspell
  mkdir -p $pkgdir/usr/share/enchant
    
  # Fix so Enchant can use dictionaries for Hunspell too.  
  ln -s /usr/share/myspell $pkgdir/usr/share/enchant/hunspell
  
  # Actual installation...
  install -D -m644 "$srcdir/$lang2.aff"	"$pkgdir/usr/share/myspell/$lang.aff" || return 1
  install -D -m644 "$srcdir/$lang2.dic"	"$pkgdir/usr/share/myspell/$lang.dic" || return 1
}