add various hunspell dictionaries.
This commit is contained in:
@@ -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))
|
||||
@@ -0,0 +1,61 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "https://pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>hunspell-dictionaries</Name>
|
||||
<Homepage>https://github.com/wooorm/dictionaries</Homepage>
|
||||
<Packager>
|
||||
<Name>fury</Name>
|
||||
<Email>uglyside@yandex.ru</Email>
|
||||
</Packager>
|
||||
<License>MIT</License>
|
||||
<IsA>data</IsA>
|
||||
<PartOf>office.dictionary</PartOf>
|
||||
<Summary>Hunspell dictionaries in UTF-8.</Summary>
|
||||
<Description>Collection of normalized and installable hunspell dictionaries.</Description>
|
||||
<Archive sha1sum="6b15b9b8f2539a636202eec4603c52605ff680af" type="zip">
|
||||
https://github.com/wooorm/dictionaries/archive/2a5353f1617f00e606dc036cab1c37df94272ca0.zip
|
||||
</Archive>
|
||||
<BuildDependencies>
|
||||
<!-- <Dependency>nodejs</Dependency> -->
|
||||
<Dependency>util-linux</Dependency>
|
||||
</BuildDependencies>
|
||||
<Patches>
|
||||
<!-- <Patch level='1'></Patch> -->
|
||||
</Patches>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>hunspell-dictionaries</Name>
|
||||
<Conflicts>
|
||||
<Package>hunspell-dict-sv</Package>
|
||||
<Package>hunspell-dict-it</Package>
|
||||
<Package>hunspell-dict-en</Package>
|
||||
<Package>hunspell-dict-ca</Package>
|
||||
<Package>hunspell-dict-tr</Package>
|
||||
<Package>hunspell-dict-pt</Package>
|
||||
<Package>hunspell-dict-pl</Package>
|
||||
<Package>hunspell-dict-ru</Package>
|
||||
<Package>hunspell-dict-es</Package>
|
||||
<Package>hunspell-dict-nl</Package>
|
||||
<Package>hunspell-dict-de</Package>
|
||||
<Package>hunspell-dict-fr</Package>
|
||||
</Conflicts>
|
||||
<RuntimeDependencies>
|
||||
<!-- <Dependency></Dependency> -->
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="data">/usr/share/hunspell</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="1">
|
||||
<Date>2022-11-30</Date>
|
||||
<Version>0.0.0</Version>
|
||||
<Comment>First build.</Comment>
|
||||
<Name>fury</Name>
|
||||
<Email>uglyside@yandex.ru</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
Reference in New Issue
Block a user