libreoffice-dictionaries: depends on bdic layout

This commit is contained in:
Đoàn Trần Công Danh 2024-04-18 08:15:57 +07:00
parent 84d4598ce7
commit cbe68c01e0
2 changed files with 59 additions and 74 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'libreoffice-dictionaries'
pkgname=libreoffice-dictionaries
version=24.2.2.2
revision=1
revision=2
build_style=meta
hostmakedepends="mythes perl"
short_desc="Libre Office Dictionaries"
@ -247,27 +247,13 @@ do_install() {
:
}
libreoffice-qtwebengine-dict_package() {
short_desc+=" - QtWebEngine support"
make_dirs="/usr/share/hunspell-bdic 0755 root root"
pkg_install() {
vmkdir usr/share/qt5
vmkdir usr/share/qt6
rm -rf $PKGDESTDIR/usr/share/qt{5,6}/qtwebengine_dictionaries
ln -sf ../hunspell-bdic \
$PKGDESTDIR/usr/share/qt5/qtwebengine_dictionaries
ln -sf ../hunspell-bdic \
$PKGDESTDIR/usr/share/qt6/qtwebengine_dictionaries
}
}
# pkgname is:
# - if unavailable: only language; break
# - if lower version: keep old name; break
# - use only language, provides and replaces
hunspell-af_package() {
short_desc="Afrikaans dictionary for hunspell"
depends="libreoffice-qtwebengine-dict"
depends="hunspell-qtwebengine-dict"
license="LGPL-2.1-or-later"
pkg_install() {
_vhunspell af_ZA af_NA
@ -284,7 +270,7 @@ hyphen-af_package() {
hunspell-an_package() {
short_desc="Aragonese dictionary for hunspell"
depends="libreoffice-qtwebengine-dict"
depends="hunspell-qtwebengine-dict"
license="GPL-3.0-or-later, LGPL-3.0-or-later, MPL-1.1"
pkg_install() {
_vhunspell an_ES
@ -293,7 +279,7 @@ hunspell-an_package() {
hunspell-ar_package() {
short_desc="Arabic dictionary for hunspell"
depends="libreoffice-qtwebengine-dict"
depends="hunspell-qtwebengine-dict"
license="GPL-2.0-or-later, LGPL-2.1-or-later, MPL-1.1, MPL-2.0"
pkg_install() {
_vhunspell ar ar_SA ar_DZ ar_BH ar_EG ar_IQ ar_JO \
@ -314,7 +300,7 @@ mythes-ar_package() {
hunspell-be_package() {
short_desc="Belarusian dictionary for hunspell"
depends="libreoffice-qtwebengine-dict"
depends="hunspell-qtwebengine-dict"
license="LGPL-3.0-only, CC-BY-SA-4.0"
pkg_install() {
set -x
@ -333,7 +319,7 @@ hyphen-be_package() {
hunspell-bg_package() {
short_desc="Bulgarian dictionary for hunspell"
depends="libreoffice-qtwebengine-dict"
depends="hunspell-qtwebengine-dict"
license="GPL-2.0-only"
pkg_install() {
_vhunspell bg_BG
@ -358,7 +344,7 @@ mythes-bg_package() {
hunspell-bn_package() {
short_desc="Bengali dictionary for hunspell"
depends="libreoffice-qtwebengine-dict"
depends="hunspell-qtwebengine-dict"
license="GPL-2.0-only"
pkg_install() {
_vhunspell bn_BD bn_IN
@ -367,7 +353,7 @@ hunspell-bn_package() {
hunspell-bo_package() {
short_desc="Tibetan dictionary for hunspell"
depends="libreoffice-qtwebengine-dict"
depends="hunspell-qtwebengine-dict"
license="CC0-1.0"
pkg_install() {
_vhunspell bo bo_CN bo_IN
@ -376,7 +362,7 @@ hunspell-bo_package() {
hunspell-br_package() {
short_desc="Breton dictionary for hunspell"
depends="libreoffice-qtwebengine-dict"
depends="hunspell-qtwebengine-dict"
license="LGPL-2.1-or-later"
pkg_install() {
_vhunspell br_FR
@ -385,7 +371,7 @@ hunspell-br_package() {
hunspell-bs_package() {
short_desc="Bosnian dictionary for hunspell"
depends="libreoffice-qtwebengine-dict"
depends="hunspell-qtwebengine-dict"
license="LGPL-2.1-or-later, GPL-2.0-or-later, MPL-1.1"
pkg_install() {
_vhunspell bs_BA bs
@ -394,7 +380,7 @@ hunspell-bs_package() {
hunspell-ca_ES_package() {
short_desc="Catalan dictionary for hunspell"
depends="libreoffice-qtwebengine-dict"
depends="hunspell-qtwebengine-dict"
license="LGPL-2.1-or-later, GPL-2.0-or-later"
pkg_install() {
_vhunspell -d ca/dictionaries ca ca_ES ca_AD ca_FR ca_IT
@ -423,7 +409,7 @@ mythes-ca_package() {
hunspell-ckb_package() {
short_desc="Central Kurdish (Sorani) dictionary for hunspell"
depends="libreoffice-qtwebengine-dict"
depends="hunspell-qtwebengine-dict"
license="CC-BY-SA-4.0"
pkg_install() {
_vhunspell ckb ckb-IR ckb-IQ
@ -432,7 +418,7 @@ hunspell-ckb_package() {
hunspell-cs_package() {
short_desc="Czech dictionary for hunspell"
depends="libreoffice-qtwebengine-dict"
depends="hunspell-qtwebengine-dict"
license="GFDL-1.1-or-later"
pkg_install() {
_vhunspell cs_CZ
@ -457,7 +443,7 @@ mythes-cs_package() {
hunspell-da_DK_package() {
short_desc="Danish dictionary for hunspell"
depends="libreoffice-qtwebengine-dict"
depends="hunspell-qtwebengine-dict"
license="LGPL-2.1-or-later, GPL-2.0-or-later, MPL-1.1"
pkg_install() {
_vhunspell da_DK
@ -482,7 +468,7 @@ mythes-da_package() {
hunspell-de_package() {
short_desc="German dictionary for hunspell"
depends="libreoffice-qtwebengine-dict"
depends="hunspell-qtwebengine-dict"
license="LGPL-2.1-or-later, GPL-2.0-or-later, MPL-1.1"
provides="hunspell-de_CH-20240301_1 hunspell-de_DE-20240301_1"
replaces="hunspell-de_CH>=0 hunspell-de_DE>=0"
@ -514,7 +500,7 @@ mythes-de_package() {
hunspell-el_GR_package() {
short_desc="Greek dictionary for hunspell"
depends="libreoffice-qtwebengine-dict"
depends="hunspell-qtwebengine-dict"
license="LGPL-2.1-or-later, GPL-2.0-or-later, MPL-1.1"
pkg_install() {
_vhunspell el_GR
@ -531,7 +517,7 @@ hyphen-el_package() {
hunspell-en_package() {
short_desc="English dictionary for hunspell"
depends="hunspell-en_GB libreoffice-qtwebengine-dict"
depends="hunspell-en_GB hunspell-qtwebengine-dict"
license="custom:SCOWL, LGPL-2.1-or-later"
provides="hunspell-en_AU-2024_1
hunspell-en_CA-2024_1
@ -550,7 +536,7 @@ hunspell-en_package() {
hunspell-en_GB-all_package() {
short_desc="British English dictionary for hunspell"
depends="libreoffice-qtwebengine-dict"
depends="hunspell-qtwebengine-dict"
license="custom:SCOWL"
provides="hunspell-en_GB-2024_1"
replaces="hunspell-en_GB>=0"
@ -586,7 +572,7 @@ mythes-en_package() {
hunspell-eo_package() {
short_desc="Esperanto dictionary for hunspell"
depends="libreoffice-qtwebengine-dict"
depends="hunspell-qtwebengine-dict"
license="GPL-3.0-or-later"
reverts="20100216_1"
pkg_install() {
@ -614,7 +600,7 @@ _es_lang="es_AR es_BO es_CL es_CO es_CR es_CU es_DO es_EC es_ES es_GQ es_GT
es_HN es_MX es_NI es_PA es_PE es_PH es_PR es_PY es_SV es_US es_UY es_VE"
hunspell-es_package() {
short_desc="Spanish dictionary for hunspell"
depends="libreoffice-qtwebengine-dict"
depends="hunspell-qtwebengine-dict"
provides="hunspell-es_ES-${version}_${revision}"
replaces="hunspell-es_ES>=0"
license="GPL-3.0-or-later, LGPL-3.0-or-later, MPL-1.1"
@ -644,7 +630,7 @@ mythes-es_package() {
hunspell-et_package() {
short_desc="Estonian dictionary for hunspell"
depends="libreoffice-qtwebengine-dict"
depends="hunspell-qtwebengine-dict"
license="LGPL-2.1-or-later"
pkg_install() {
_vhunspell et_EE
@ -695,7 +681,7 @@ mythes-fr_package() {
hunspell-gd_package() {
short_desc="Scottish Gaelic dictionary for hunspell"
depends="libreoffice-qtwebengine-dict"
depends="hunspell-qtwebengine-dict"
license="GPL-3.0-or-later"
pkg_install() {
_vhunspell gd_GB
@ -704,7 +690,7 @@ hunspell-gd_package() {
hunspell-gl_package() {
short_desc="Galician dictionary for hunspell"
depends="libreoffice-qtwebengine-dict"
depends="hunspell-qtwebengine-dict"
license="GPL-3.0-or-later"
pkg_install() {
_vhunspell -d gl gl_ES
@ -729,7 +715,7 @@ mythes-gl_package() {
hunspell-gu_package() {
short_desc="Gujarati dictionary for hunspell"
depends="libreoffice-qtwebengine-dict"
depends="hunspell-qtwebengine-dict"
license="GPL-2.0-or-later"
pkg_install() {
_vhunspell gu_IN
@ -738,7 +724,7 @@ hunspell-gu_package() {
hunspell-gug_package() {
short_desc="Guarani dictionary for hunspell"
depends="libreoffice-qtwebengine-dict"
depends="hunspell-qtwebengine-dict"
license="GFDL-1.2-or-later"
pkg_install() {
_vhunspell gug gug_PY
@ -755,7 +741,7 @@ mythes-gug_package() {
hunspell-he_package() {
short_desc="Hebrew dictionary for hunspell"
depends="libreoffice-qtwebengine-dict"
depends="hunspell-qtwebengine-dict"
license="AGPL-3.0-or-later"
pkg_install() {
_vhunspell he_IL
@ -764,7 +750,7 @@ hunspell-he_package() {
hunspell-hi_package() {
short_desc="Hindi dictionary for hunspell"
depends="libreoffice-qtwebengine-dict"
depends="hunspell-qtwebengine-dict"
license="GPL-2.0-or-later"
pkg_install() {
_vhunspell hi_IN
@ -773,7 +759,7 @@ hunspell-hi_package() {
hunspell-hr_package() {
short_desc="Croatian dictionary for hunspell"
depends="libreoffice-qtwebengine-dict"
depends="hunspell-qtwebengine-dict"
license="LGPL-2.1-or-later, GPL-2.0-or-later, MPL-1.1"
provides="hunspell-hr_HR-20240301_1"
replaces="hunspell-hr_HR>=0"
@ -792,7 +778,7 @@ hyphen-hr_package() {
hunspell-hu_package() {
short_desc="Hungarian dictionary for hunspell"
depends="libreoffice-qtwebengine-dict"
depends="hunspell-qtwebengine-dict"
license="LGPL-3.0-or-later, MPL-2.0"
pkg_install() {
_vhunspell hu_HU
@ -817,7 +803,7 @@ mythes-hu_package() {
hunspell-id_package() {
short_desc="Indonesian dictionary for hunspell"
depends="libreoffice-qtwebengine-dict"
depends="hunspell-qtwebengine-dict"
license="LGPL-3.0-or-later"
pkg_install() {
_vhunspell -d id id_ID
@ -842,7 +828,7 @@ mythes-id_package() {
hunspell-is_package() {
short_desc="Icelandic dictionary for hunspell"
depends="libreoffice-qtwebengine-dict"
depends="hunspell-qtwebengine-dict"
license="CC-BY-SA-3.0, CC-BY-4.0"
pkg_install() {
_vhunspell is is_IS
@ -867,7 +853,7 @@ mythes-is_package() {
hunspell-it_IT_package() {
short_desc="Italian dictionary for hunspell"
depends="libreoffice-qtwebengine-dict"
depends="hunspell-qtwebengine-dict"
license="GPL-3.0-only, LGPL-3.0-only"
pkg_install() {
_vhunspell it_IT
@ -892,7 +878,7 @@ mythes-it_IT_package() {
hunspell-kmr_package() {
short_desc="Kurdish dictionary for hunspell"
depends="libreoffice-qtwebengine-dict"
depends="hunspell-qtwebengine-dict"
license="GPL-3.0-or-later, LGPL-2.1-or-later, MPL-1.1"
pkg_install() {
_vhunspell kmr_Latn kmr_Latn-TR kmr_Latn-SY \
@ -902,7 +888,7 @@ hunspell-kmr_package() {
hunspell-ko_package() {
short_desc="Korean dictionary for hunspell"
depends="libreoffice-qtwebengine-dict"
depends="hunspell-qtwebengine-dict"
license="LGPL-3.0-only"
pkg_install() {
_vhunspell ko_KR
@ -911,7 +897,7 @@ hunspell-ko_package() {
hunspell-lo_package() {
short_desc="Lao dictionary for hunspell"
depends="libreoffice-qtwebengine-dict"
depends="hunspell-qtwebengine-dict"
license="LGPL-3.0-only"
pkg_install() {
_vhunspell lo_LA
@ -920,7 +906,7 @@ hunspell-lo_package() {
hunspell-lt_package() {
short_desc="Lithuanian dictionary for hunspell"
depends="libreoffice-qtwebengine-dict"
depends="hunspell-qtwebengine-dict"
license="BSD-3-Clause"
pkg_install() {
_vhunspell -d lt_LT lt lt_LT
@ -938,7 +924,7 @@ hyphen-lt_package() {
hunspell-lv_package() {
short_desc="Latvian dictionary for hunspell"
depends="libreoffice-qtwebengine-dict"
depends="hunspell-qtwebengine-dict"
license="LGPL-2.1-or-later"
pkg_install() {
_vhunspell lv_LV
@ -963,7 +949,7 @@ mythes-lv_package() {
hunspell-mn_package() {
short_desc="Mongolian dictionary for hunspell"
depends="libreoffice-qtwebengine-dict"
depends="hunspell-qtwebengine-dict"
license="LPPL-1.3c"
pkg_install() {
_vhunspell mn_MN mn mn_Cyrl mn_Cyrl_MN
@ -980,7 +966,7 @@ hyphen-mn_package() {
hunspell-ne_package() {
short_desc="Nepali dictionary for hunspell"
depends="libreoffice-qtwebengine-dict"
depends="hunspell-qtwebengine-dict"
license="LGPL-2.1-only"
pkg_install() {
_vhunspell ne_NP
@ -997,7 +983,7 @@ mythes-ne_package() {
hunspell-nl_NL_package() {
short_desc="Dutch (Netherland) dictionary for hunspell"
depends="libreoffice-qtwebengine-dict"
depends="hunspell-qtwebengine-dict"
license="BSD-3-Clause, CC-BY-SA-3.0"
pkg_install() {
_vhunspell nl_NL
@ -1018,7 +1004,7 @@ hyphen-nl_NL_package() {
hunspell-no_package() {
short_desc="Norwegian dictionary for hunspell"
depends="libreoffice-qtwebengine-dict"
depends="hunspell-qtwebengine-dict"
license="GPL-2.0-or-later"
pkg_install() {
_vhunspell -d no nb_NO
@ -1046,7 +1032,7 @@ mythes-no_package() {
hunspell-oc_package() {
short_desc="Occitan dictionary for hunspell"
depends="libreoffice-qtwebengine-dict"
depends="hunspell-qtwebengine-dict"
license="GPL-2.0-or-later"
pkg_install() {
_vhunspell oc_FR
@ -1055,7 +1041,7 @@ hunspell-oc_package() {
hunspell-pl_package() {
short_desc="Polish dictionary for hunspell"
depends="libreoffice-qtwebengine-dict"
depends="hunspell-qtwebengine-dict"
license="LGPL-2.1-or-later, GPL-2.0-or-later, MPL-1.1"
provides="hunspell-pl_PL-20240301_1"
replaces="hunspell-pl_PL>=0"
@ -1086,7 +1072,7 @@ mythes-pl_package() {
hunspell-pt_BR_package() {
short_desc="Brazillian Portuguese dictionary for hunspell"
depends="libreoffice-qtwebengine-dict"
depends="hunspell-qtwebengine-dict"
license="LGPL-3.0-or-later, MPL-1.1, BSD-3-Clause"
pkg_install() {
_vhunspell pt_BR
@ -1096,7 +1082,7 @@ hunspell-pt_BR_package() {
# TODO
hunspell-pt_PT_package() {
short_desc="Portuguese (Portugal) dictionary for hunspell"
depends="libreoffice-qtwebengine-dict"
depends="hunspell-qtwebengine-dict"
license="GPL-2.0-or-later, MPL-1.1"
pkg_install() {
_vhunspell pt_PT
@ -1138,7 +1124,7 @@ mythes-pt_PT_package() {
hunspell-ro_RO_package() {
short_desc="Romanian dictionary for hunspell"
depends="libreoffice-qtwebengine-dict"
depends="hunspell-qtwebengine-dict"
license="GPL-2.0-or-later, LGPL-2.1-or-later, MPL-1.1"
pkg_install() {
_vhunspell -d ro ro_RO
@ -1163,7 +1149,7 @@ mythes-ro_package() {
hunspell-ru_RU_package() {
short_desc="Russian dictionary for hunspell"
depends="libreoffice-qtwebengine-dict"
depends="hunspell-qtwebengine-dict"
license="BSD-4-Clause"
pkg_install() {
_vhunspell ru_RU
@ -1188,7 +1174,7 @@ mythes-ru_package() {
hunspell-si_package() {
short_desc="Sinhala dictionary for hunspell"
depends="libreoffice-qtwebengine-dict"
depends="hunspell-qtwebengine-dict"
license="GPL-3.0-or-later"
pkg_install() {
_vhunspell si_LK
@ -1197,7 +1183,7 @@ hunspell-si_package() {
hunspell-sk_package() {
short_desc="Slovak dictionary for hunspell"
depends="libreoffice-qtwebengine-dict"
depends="hunspell-qtwebengine-dict"
license="GPL-2.0-or-later, LGPL-2.1-or-later, MPL-1.1"
pkg_install() {
_vhunspell sk_SK
@ -1223,7 +1209,7 @@ mythes-sk_package() {
hunspell-sl_package() {
short_desc="Slovenian dictionary for hunspell"
depends="libreoffice-qtwebengine-dict"
depends="hunspell-qtwebengine-dict"
license="GPL-2.0-or-later, LGPL-2.1-or-later"
provides="hunspell-sl_SI-2024_1"
replaces="hunspell-sl_SI>=0"
@ -1250,7 +1236,7 @@ mythes-sl_package() {
hunspell-sq_package() {
short_desc="Albanian dictionary for hunspell"
depends="libreoffice-qtwebengine-dict"
depends="hunspell-qtwebengine-dict"
license="MPL-2.0"
pkg_install() {
_vhunspell sq_AL
@ -1267,7 +1253,7 @@ hyphen-sq_package() {
hunspell-sr_package() {
short_desc="Serbian dictionary for hunspell"
depends="libreoffice-qtwebengine-dict"
depends="hunspell-qtwebengine-dict"
license="MPL-2.0, GPL-3.0-or-later, LGPL-3.0-or-later"
# SR is Suriname, Serbia is RS
replaces="hunspell-sr_SR>=0"
@ -1290,7 +1276,7 @@ hyphen-sr_package() {
hunspell-sv_package() {
short_desc="Swedish dictionary for hunspell"
depends="libreoffice-qtwebengine-dict"
depends="hunspell-qtwebengine-dict"
license="LGPL-3.0-or-later"
provides="hunspell-sv_SE-${version}_${revision}"
replaces="hunspell-sv_SE>=0"
@ -1319,7 +1305,7 @@ mythes-sv_package() {
hunspell-sw_package() {
short_desc="Swahili dictionary for hunspell"
depends="libreoffice-qtwebengine-dict"
depends="hunspell-qtwebengine-dict"
license="LGPL-3.0-or-later"
pkg_install() {
_vhunspell sw_TZ
@ -1328,7 +1314,7 @@ hunspell-sw_package() {
hunspell-te_package() {
short_desc="Telugu dictionary for hunspell"
depends="libreoffice-qtwebengine-dict"
depends="hunspell-qtwebengine-dict"
license="GPL-2.0-or-later"
pkg_install() {
_vhunspell te_IN te
@ -1345,7 +1331,7 @@ hyphen-te_package() {
hunspell-th_package() {
short_desc="Thai dictionary for hunspell"
depends="libreoffice-qtwebengine-dict"
depends="hunspell-qtwebengine-dict"
license="LGPL-3.0-or-later"
pkg_install() {
_vhunspell th_TH
@ -1362,7 +1348,7 @@ hyphen-th_package() {
hunspell-tr_package() {
short_desc="Turkish dictionary for hunspell"
depends="libreoffice-qtwebengine-dict"
depends="hunspell-qtwebengine-dict"
license="MPL-2.0"
pkg_install() {
_vhunspell tr_TR
@ -1371,7 +1357,7 @@ hunspell-tr_package() {
hunspell-uk_package() {
short_desc="Ukrainian dictionary for hunspell"
depends="libreoffice-qtwebengine-dict"
depends="hunspell-qtwebengine-dict"
license="MPL-1.1"
pkg_install() {
_vhunspell uk_UA
@ -1396,7 +1382,7 @@ mythes-uk_package() {
hunspell-vi_package() {
short_desc="Vietnamese dictionary for hunspell"
depends="libreoffice-qtwebengine-dict"
depends="hunspell-qtwebengine-dict"
license="GPL-2.0-or-later"
pkg_install() {
_vhunspell -d vi vi_VN

View File

@ -1 +0,0 @@
libreoffice-dictionaries