summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d3faa9de95bf7654b47e91998a1880b347f1aaee (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
# Maintainer: Jakub Klinkovský <lahwaacz@archlinux.org>

pkgname=mythes-cs
pkgver=20150310
pkgrel=1
pkgdesc="Czech thesaurus"
arch=("any")
url="https://wiki.archlinux.org/index.php/LibreOffice#Language_Aids"
license=("custom")
optdepends=("libmythes: offers thesaurus library functions")
source=("http://pkgs.fedoraproject.org/repo/pkgs/mythes-cs/thes_cs_CZ_v2.zip/7f9c85b104db4cc6a719b3aab8c69a10/thes_cs_CZ_v2.zip")
md5sums=("7f9c85b104db4cc6a719b3aab8c69a10")

package() {
    install -dm755 "$pkgdir/usr/share/mythes"
    install -m644 th_cs_CZ_v2.* "$pkgdir/usr/share/mythes"

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

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