Skip to content

Commit 7999fe1

Browse files
committed
fix: get dicts from libreoffice git, fix subpackages
Signed-off-by: Luca Di Maio <[email protected]>
1 parent 71eb672 commit 7999fe1

File tree

1 file changed

+66
-19
lines changed

1 file changed

+66
-19
lines changed

hunspell.yaml

Lines changed: 66 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package:
22
name: hunspell
33
version: 1.7.2
4-
epoch: 0
4+
epoch: 1
55
description: Spell checker and morphological analyzer library and program
66
copyright:
77
- license: GPL-2.0-or-later OR LGPL-2.1-or-later OR MPL-1.1
@@ -17,7 +17,7 @@ environment:
1717
- gettext-dev
1818
- ncurses-dev
1919
- readline-dev
20-
- wget
20+
- git
2121

2222
pipeline:
2323
- uses: fetch
@@ -35,23 +35,69 @@ pipeline:
3535

3636
- runs: |
3737
mkdir -p ${{targets.destdir}}/usr/share/hunspell
38-
cd ${{targets.destdir}}/usr/share/hunspell
39-
wget -c https://downloads.sourceforge.net/project/wordlist/speller/2020.12.07/hunspell-en_US-2020.12.07.zip
40-
wget -c https://downloads.sourceforge.net/project/wordlist/speller/2020.12.07/hunspell-en_CA-2020.12.07.zip
41-
wget -c https://downloads.sourceforge.net/project/wordlist/speller/2020.12.07/hunspell-en_AU-2020.12.07.zip
42-
wget -c https://downloads.sourceforge.net/project/wordlist/speller/2020.12.07/hunspell-en_GB-large-2020.12.07.zip
43-
for i in *.zip; do
44-
unzip -o $i
45-
done
46-
rm -r *.zip
38+
git clone --depth=1 https://anongit.freedesktop.org/git/libreoffice/dictionaries.git
4739
4840
data:
49-
- name: _langs
41+
- name: _dictionaries
5042
items:
51-
en_US:
52-
en_CA:
53-
en_AU:
54-
en_GB-large:
43+
af:
44+
an:
45+
ar:
46+
bg:
47+
bn:
48+
bo:
49+
br:
50+
bs:
51+
ca:
52+
ckb:
53+
cs:
54+
da:
55+
de:
56+
el:
57+
en:
58+
eo:
59+
es:
60+
et:
61+
fr:
62+
gd:
63+
gl:
64+
gu:
65+
gug:
66+
he:
67+
hi:
68+
hr:
69+
hu:
70+
id:
71+
is:
72+
it:
73+
kmr:
74+
ko:
75+
lo:
76+
lt:
77+
lv:
78+
mn:
79+
nb:
80+
ne:
81+
nl:
82+
nn:
83+
oc:
84+
pl:
85+
pt:
86+
ro:
87+
ru:
88+
si:
89+
sk:
90+
sl:
91+
sq:
92+
sr:
93+
sv:
94+
sw:
95+
te:
96+
th:
97+
tr:
98+
uk:
99+
vi:
100+
55101

56102
subpackages:
57103
- name: libhunspell
@@ -70,13 +116,14 @@ subpackages:
70116
- uses: split/manpages
71117
description: hunspell manpages
72118

73-
- range: _langs
74-
name: hunspell-lang-${{range.key}}
119+
- range: _dictionaries
120+
name: hunspell-dictionary-${{range.key}}
75121
description: hunspell dictionaries
76122
pipeline:
123+
- uses: split/locales
77124
- runs: |
78125
mkdir -p ${{targets.subpkgdir}}/usr/share/hunspell
79-
cp ${{targets.destdir}}/usr/share/hunspell/${{range.key}}.* ${{targets.subpkgdir}}/usr/share/hunspell/
126+
find dictionaries/ \( -iname ${{range.key}}*.dic -o -iname ${{range.key}}*.aff \) -exec cp {} ${{targets.subpkgdir}}/usr/share/hunspell \;
80127
81128
update:
82129
enabled: true

0 commit comments

Comments
 (0)