summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b4673d3c14a6bf57c460922151f7b4778327bac5 (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
34
# Maintainer: Jakub Klinkovsk√Ĺ <j.l.k@gmx.com>

pkgname="hyphen-cs"
pkgdesc="Czech hyphenation rules"
pkgver=20061030
pkgrel=2
arch=("any")
optdepends=("hyphen: offers hyphenation library functions")
url="http://download.services.openoffice.org/contrib/dictionaries/"
license=("GPL2")
source=(${url}hyph_cs_CZ.zip)
md5sums=('7dc7192fb3c141db6518c54781df6846')

build() {
    /bin/true
}

package() {
    cd "$srcdir"
    install -dm755 ${pkgdir}/usr/share/hyphen
    install -m644 hyph_cs_CZ.dic ${pkgdir}/usr/share/hyphen

    # the symlinks
    install -dm755 ${pkgdir}/usr/share/myspell/dicts
    pushd ${pkgdir}/usr/share/myspell/dicts
        for file in ${pkgdir}/usr/share/hyphen/*; do
            ln -sv /usr/share/hyphen/$(basename $file) .
        done
    popd

    # docs
    install -dm755 ${pkgdir}/usr/share/doc/$pkgname
    install -m644 README_hyph_cs_CZ.txt ${pkgdir}/usr/share/doc/$pkgname
}