summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2f9e0c2ef90cbc0488968bec20b290f89cfbefd7 (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
# Maintainer: Ondrej Kipila <ok100.ok100.ok100@gmail.com>

pkgname=hunspell-cs
pkgver=20061030
pkgrel=1
pkgdesc="Czech hunspell/myspell dictionary"
arch=('any')
url="http://ooo.mirror.dkm.cz/pub/openoffice/contrib/dictionaries/"
license=('GPL2' 'custom')
depends=('hunspell')
source=(${url}cs_CZ-pack.zip)
md5sums=('a778a2a0df6abf505fd8b20a503414e0')

build()
{
    /bin/true
}

package() 
{
    cd ${srcdir}
    bsdtar -xf cs_CZ.zip
    install -D -m 644 cs_CZ.aff ${pkgdir}/usr/share/myspell/dicts/cs_CZ.aff
    install -D -m 644 cs_CZ.dic ${pkgdir}/usr/share/myspell/dicts/cs_CZ.dic

    # symlinks are needed    
    install -dm755 ${pkgdir}/usr/share/hunspell
    for file in ${pkgdir}/usr/share/myspell/dicts/*; do
        ln -s /usr/share/myspell/dicts/$(basename $file) ${pkgdir}/usr/share/hunspell/$(basename $file)
    done
}