diff --git a/office/dictionary/hunspell-dictionaries/actions.py b/office/dictionary/hunspell-dictionaries/actions.py new file mode 100644 index 0000000000..06696a2bb2 --- /dev/null +++ b/office/dictionary/hunspell-dictionaries/actions.py @@ -0,0 +1,20 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +# +# Licensed under the GNU General Public License, version 3. +# See the file https://www.gnu.org/licenses/gpl-3.0.txt + +from pisi.actionsapi import shelltools, pisitools + +def setup(): + shelltools.cd("dictionaries") + shelltools.system("rename -v - _ *") + for t in shelltools.ls("*"): + shelltools.system("find %s -type f -iname 'index*' | sed -e 'p;s:index:%s:' | xargs -n2 mv" % (t, t)) + shelltools.system("find %s -type f -exec chmod 0644 {} \;" % t) + +def install(): + shelltools.cd("dictionaries") + for t in shelltools.ls("*"): + pisitools.insinto("/usr/share/hunspell", "%s/%s.dic" % (t, t)) + pisitools.insinto("/usr/share/hunspell", "%s/%s.aff" % (t, t)) diff --git a/office/dictionary/hunspell-dictionaries/pspec.xml b/office/dictionary/hunspell-dictionaries/pspec.xml new file mode 100644 index 0000000000..29144ca880 --- /dev/null +++ b/office/dictionary/hunspell-dictionaries/pspec.xml @@ -0,0 +1,61 @@ + + + + + hunspell-dictionaries + https://github.com/wooorm/dictionaries + + fury + uglyside@yandex.ru + + MIT + data + office.dictionary + Hunspell dictionaries in UTF-8. + Collection of normalized and installable hunspell dictionaries. + + https://github.com/wooorm/dictionaries/archive/2a5353f1617f00e606dc036cab1c37df94272ca0.zip + + + + util-linux + + + + + + + + hunspell-dictionaries + + hunspell-dict-sv + hunspell-dict-it + hunspell-dict-en + hunspell-dict-ca + hunspell-dict-tr + hunspell-dict-pt + hunspell-dict-pl + hunspell-dict-ru + hunspell-dict-es + hunspell-dict-nl + hunspell-dict-de + hunspell-dict-fr + + + + + + /usr/share/hunspell + + + + + + 2022-11-30 + 0.0.0 + First build. + fury + uglyside@yandex.ru + + +