1 # Maintainer: AndyRTR <andyrtr@archlinux.org>
7 pkgdesc="German thesaurus"
9 url="https://www.openthesaurus.de/"
11 optdepends=('libmythes: offers thesaurus library functions')
12 source=(#http://www.openthesaurus.de/export/Deutscher-Thesaurus.oxt - changes every day
13 https://sources.archlinux.org/other/$pkgname/Deutscher-Thesaurus-${_date}.oxt
14 # alternative source with most times older snapshot
15 #http://extensions.libreoffice.org/extension-center/german-de-de-frami-dictionaries/releases/2011.06.03/dict-de_de-frami_2011-06-03.oxt
17 sha256sums=('c3ae10f88148d8967f4b28e6df43675ec0385291a636f5d96cec4eec9d1116da')
19 # source PKGBUILD && mksource
21 mkdir /tmp/$pkgname-${_date}
22 pushd /tmp/$pkgname-${_date}
23 wget http://www.openthesaurus.de/export/Deutscher-Thesaurus.oxt
24 mv Deutscher-Thesaurus.oxt Deutscher-Thesaurus-${_date}.oxt
30 install -dm755 "${pkgdir}"/usr/share/mythes
31 cp -p th_de_DE_v2.* "$pkgdir"/usr/share/mythes
33 pushd $pkgdir/usr/share/mythes/
34 de_DE_aliases="de_AT de_BE de_CH de_LI de_LU"
35 for lang in $de_DE_aliases; do
36 ln -s th_de_DE_v2.idx "th_"$lang"_v2.idx"
37 ln -s th_de_DE_v2.dat "th_"$lang"_v2.dat"
42 install -dm755 "${pkgdir}"/usr/share/myspell/dicts
43 pushd "$pkgdir"/usr/share/myspell/dicts
44 for file in "$pkgdir"/usr/share/mythes/*; do
45 ln -sv /usr/share/mythes/$(basename $file) .