libreoffice-dictionaries: update to 25.8.0.4.

This commit is contained in:
Đoàn Trần Công Danh 2025-08-20 19:28:03 +07:00
parent a5460cc47f
commit 3e97eac3bc
16 changed files with 177 additions and 24 deletions

1
srcpkgs/hunspell-as Symbolic link
View file

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

1
srcpkgs/hunspell-kn Symbolic link
View file

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

1
srcpkgs/hunspell-mr Symbolic link
View file

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

1
srcpkgs/hunspell-or Symbolic link
View file

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

1
srcpkgs/hunspell-pa Symbolic link
View file

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

1
srcpkgs/hunspell-sa Symbolic link
View file

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

1
srcpkgs/hunspell-ta Symbolic link
View file

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

1
srcpkgs/hyphen-as Symbolic link
View file

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

1
srcpkgs/hyphen-kn Symbolic link
View file

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

1
srcpkgs/hyphen-mr Symbolic link
View file

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

1
srcpkgs/hyphen-or Symbolic link
View file

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

1
srcpkgs/hyphen-pa Symbolic link
View file

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

1
srcpkgs/hyphen-sa Symbolic link
View file

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

View file

@ -1,6 +1,6 @@
# Template file for 'libreoffice-dictionaries'
pkgname=libreoffice-dictionaries
version=25.2.5.2
version=25.8.0.4
revision=1
metapackage=yes
hostmakedepends="mythes perl"
@ -11,11 +11,12 @@ homepage="https://www.libreoffice.org/"
distfiles="https://download.documentfoundation.org/libreoffice/src/${version%.*}/${pkgname}-${version}.tar.xz"
# distfiles="https://download.nus.edu.sg/mirror/tdf/libreoffice/src/${version%.*}/${pkgname}-${version}.tar.xz"
# distfiles="https://mirrors.nju.edu.cn/tdf/libreoffice/src/${version%.*}/${pkgname}-${version}.tar.xz"
checksum=56e70f8d02d224b5ece5b84ccc93d07c463da4a57959d23200b940901d0b18e8
checksum=4e5d8f0c61b7d0660ac51f78682a372b21aa417c4bc38a88c620ae05b63655b1
depends="hunspell-af hyphen-af
hunspell-an
hunspell-ar mythes-ar
hunspell-as hyphen-as
hunspell-be hyphen-be
hunspell-bg hyphen-bg mythes-bg
hunspell-bn
@ -46,20 +47,25 @@ depends="hunspell-af hyphen-af
hunspell-is hyphen-is mythes-is
hunspell-it_IT hyphen-it_IT mythes-it_IT
hunspell-kmr
hunspell-kn hyphen-kn
hunspell-ko
hunspell-lo
hunspell-lt hyphen-lt
hunspell-lv hyphen-lv mythes-lv
hunspell-mn hyphen-mn
hunspell-mr hyphen-mr mythes-mr
hunspell-ne mythes-ne
hunspell-nl_NL hyphen-nl_NL
hunspell-no hyphen-no mythes-no
hunspell-oc
hunspell-or hyphen-or
hunspell-pa hyphen-pa
hunspell-pl hyphen-pl mythes-pl
hunspell-pt_BR hyphen-pt_BR mythes-pt_BR
hunspell-pt_PT hyphen-pt_PT mythes-pt_PT
hunspell-ro_RO hyphen-ro mythes-ro
hunspell-ru_RU hyphen-ru mythes-ru
hunspell-sa hyphen-sa
hunspell-si
hunspell-sk hyphen-sk mythes-sk
hunspell-sl hyphen-sl mythes-sl
@ -67,8 +73,9 @@ depends="hunspell-af hyphen-af
hunspell-sr hyphen-sr
hunspell-sv hyphen-sv mythes-sv
hunspell-sw
hunspell-ta
hunspell-te hyphen-te
hunspell-th hyphen-th
hunspell-th hyphen-th mythes-th
hunspell-tr
hunspell-uk hyphen-uk mythes-uk
hunspell-vi
@ -103,8 +110,10 @@ _build_bdic() {
mkdir -p bdic
# convert-dict not understand TAB
sed 's/\t/ /' "dictionaries/an_ES/an_ES.aff" >"bdic/an_ES.aff"
cp "dictionaries/an_ES/an_ES.dic" bdic/
for lang in an_ES bn_BD; do
sed 's/\t/ /g' "dictionaries/$lang/$lang.aff" >"bdic/$lang.aff"
cp "dictionaries/$lang/$lang.dic" bdic/
done
# convert-dict works on fixed array of utf-16 characters.
_drop_long_dic da_DK 112
@ -113,8 +122,11 @@ _build_bdic() {
_drop_long_dic ko_KR 173
_drop_long_dic th_TH 45
# convert-dict not understand IGNORE
for lang in ar bo ckb hu_HU uk_UA; do
sed '/^IGNORE/d' "dictionaries/$lang/$lang.aff" >"bdic/$lang.aff"
grep -l IGNORE dictionaries/*/*.aff |
while read file; do
lang="${file##*/}"
lang="${lang%.aff}"
sed '/^IGNORE/d' "$file" >"bdic/$lang.aff"
cp "dictionaries/$lang/$lang.dic" bdic/
done
@ -272,7 +284,7 @@ hunspell-an_package() {
depends="hunspell-qtwebengine-dict"
license="GPL-3.0-or-later, LGPL-3.0-or-later, MPL-1.1"
pkg_install() {
_vhunspell an_ES
_vhunspell an_ES an
}
}
@ -297,6 +309,23 @@ mythes-ar_package() {
}
}
hunspell-as_package() {
short_desc="Assamese dictionary for hunspell"
depends="hunspell-qtwebengine-dict"
license="LGPL-3.0-or-later"
pkg_install() {
_vhunspell as_IN
}
}
hyphen-as_package() {
short_desc="Assamese hyphenation rules"
license="LGPL-3.0-or-later"
pkg_install() {
_vhyphen as_IN
}
}
hunspell-be_package() {
short_desc="Belarusian dictionary for hunspell"
depends="hunspell-qtwebengine-dict"
@ -466,7 +495,7 @@ mythes-da_package() {
hunspell-de_package() {
short_desc="German dictionary for hunspell"
depends="hunspell-qtwebengine-dict"
license="LGPL-2.1-or-later, GPL-2.0-or-later, MPL-1.1"
license="GPL-2.0-only, GPL-3.0-only, MPL-1.1"
provides="hunspell-de_CH-20240301_1 hunspell-de_DE-20240301_1"
replaces="hunspell-de_CH>=0 hunspell-de_DE>=0"
pkg_install() {
@ -478,7 +507,7 @@ hunspell-de_package() {
hyphen-de_package() {
short_desc="German hyphenation rules"
license="LGPL-2.1-or-later, GPL-2.0-only, GPL-3.0-only"
license="LGPL-2.1-or-later"
pkg_install() {
_vhyphen -d de de_AT
_vhyphen -d de de_CH
@ -488,7 +517,7 @@ hyphen-de_package() {
mythes-de_package() {
short_desc="German thesaurus for LibreOffice"
license="LGPL-2.1-or-later, GPL-2.0-only, GPL-3.0-only"
license="LGPL-2.1-or-later"
pkg_install() {
_vmythes -v 2 -d de de_CH
_vmythes -v 2 -d de de_DE de_AT
@ -535,7 +564,7 @@ hunspell-en_GB-all_package() {
short_desc="British English dictionary for hunspell"
depends="hunspell-qtwebengine-dict"
license="custom:SCOWL"
provides="hunspell-en_GB-2024_1"
provides="hunspell-en_GB-2025.04_1"
replaces="hunspell-en_GB>=0"
pkg_install() {
_vhunspell -d en en_GB en_BS en_BZ en_GH en_IE en_IN en_JM \
@ -643,7 +672,7 @@ hyphen-et_package() {
}
hunspell-fa_package() {
short_desc="Persian dictionary for hunspell by Lilak"
short_desc="Farsi - Persian dictionary for hunspell by Lilak"
license="Apache-2.0"
pkg_install() {
_vhunspell fa_IR
@ -678,7 +707,7 @@ mythes-fr_package() {
}
hunspell-gd_package() {
short_desc="Scottish Gaelic dictionary for hunspell"
short_desc="Gaelic dictionary for hunspell"
depends="hunspell-qtwebengine-dict"
license="GPL-3.0-or-later"
pkg_install() {
@ -854,7 +883,7 @@ hunspell-it_IT_package() {
depends="hunspell-qtwebengine-dict"
license="GPL-3.0-only, LGPL-3.0-only"
pkg_install() {
_vhunspell it_IT
_vhunspell it_IT it_CH
}
}
@ -862,7 +891,7 @@ hyphen-it_IT_package() {
short_desc="Italian hyphenation rules"
license="GPL-3.0-only, LGPL-3.0-only"
pkg_install() {
_vhyphen it_IT
_vhyphen it_IT it_CH
}
}
@ -870,12 +899,12 @@ mythes-it_IT_package() {
short_desc="Italian thesaurus for LibreOffice"
license="GPL-3.0-only, LGPL-3.0-only"
pkg_install() {
_vmythes -v 2 it_IT
_vmythes -v 2 it_IT it_CH
}
}
hunspell-kmr_package() {
short_desc="Kurdish dictionary for hunspell"
short_desc="Kurmanji - Northern Kurdish dictionary for hunspell"
depends="hunspell-qtwebengine-dict"
license="GPL-3.0-or-later, LGPL-2.1-or-later, MPL-1.1"
pkg_install() {
@ -884,6 +913,23 @@ hunspell-kmr_package() {
}
}
hunspell-kn_package() {
short_desc="Kannada dictionary for hunspell"
depends="hunspell-qtwebengine-dict"
license="GPL-3.0-or-later"
pkg_install() {
_vhunspell kn_IN
}
}
hyphen-kn_package() {
short_desc="Kannada hyphenation rules"
license="GPL-3.0-or-later"
pkg_install() {
_vhyphen kn_IN
}
}
hunspell-ko_package() {
short_desc="Korean dictionary for hunspell"
depends="hunspell-qtwebengine-dict"
@ -894,7 +940,7 @@ hunspell-ko_package() {
}
hunspell-lo_package() {
short_desc="Lao dictionary for hunspell"
short_desc="Lao - Laotian dictionary for hunspell"
depends="hunspell-qtwebengine-dict"
license="LGPL-3.0-only"
pkg_install() {
@ -962,6 +1008,31 @@ hyphen-mn_package() {
}
}
hunspell-mr_package() {
short_desc="Marathi dictionary for hunspell"
depends="hunspell-qtwebengine-dict"
license="GPL-2.0-only"
pkg_install() {
_vhunspell mr_IN
}
}
hyphen-mr_package() {
short_desc="Marathi hyphenation rules"
license="GPL-2.0-only"
pkg_install() {
_vhyphen mr_IN
}
}
mythes-mr_package() {
short_desc="Marathi thesaurus for LibreOffice"
license="GPL-2.0-only"
pkg_install() {
_vmythes -v 2 mr_IN
}
}
hunspell-ne_package() {
short_desc="Nepali dictionary for hunspell"
depends="hunspell-qtwebengine-dict"
@ -1001,7 +1072,7 @@ hyphen-nl_NL_package() {
}
hunspell-no_package() {
short_desc="Norwegian dictionary for hunspell"
short_desc="Norwegian (Nynorsk and Bokmål) dictionary for hunspell"
depends="hunspell-qtwebengine-dict"
license="GPL-2.0-or-later"
pkg_install() {
@ -1011,7 +1082,7 @@ hunspell-no_package() {
}
hyphen-no_package() {
short_desc="Norwegian hyphenation rules"
short_desc="Norwegian (Nynorsk and Bokmål) hyphenation rules"
license="GPL-2.0-or-later"
pkg_install() {
_vhyphen -d no nb_NO
@ -1020,7 +1091,7 @@ hyphen-no_package() {
}
mythes-no_package() {
short_desc="Norwegian thesaurus for LibreOffice"
short_desc="Norwegian (Nynorsk and Bokmål) thesaurus for LibreOffice"
license="GPL-2.0-or-later"
pkg_install() {
_vmythes -v 2 -d no nb_NO
@ -1033,7 +1104,41 @@ hunspell-oc_package() {
depends="hunspell-qtwebengine-dict"
license="GPL-2.0-or-later"
pkg_install() {
_vhunspell oc_FR
_vhunspell oc_FR oc_FR@lengadoc
}
}
hunspell-or_package() {
short_desc="Oriya dictionary for hunspell"
depends="hunspell-qtwebengine-dict"
license="LGPL-3.0-or-later"
pkg_install() {
_vhunspell or_IN
}
}
hyphen-or_package() {
short_desc="Oriya hyphenation rules"
license="LGPL-3.0-or-later"
pkg_install() {
_vhyphen or_IN
}
}
hunspell-pa_package() {
short_desc="Panjabi dictionary for hunspell"
depends="hunspell-qtwebengine-dict"
license="LGPL-3.0-or-later"
pkg_install() {
_vhunspell pa_IN
}
}
hyphen-pa_package() {
short_desc="Panjabi hyphenation rules"
license="LGPL-3.0-or-later"
pkg_install() {
_vhyphen pa_IN
}
}
@ -1073,7 +1178,6 @@ hunspell-pt_BR_package() {
}
}
# TODO
hunspell-pt_PT_package() {
reverts="20201029_1 20220621_1"
short_desc="Portuguese (Portugal) dictionary for hunspell"
@ -1167,6 +1271,23 @@ mythes-ru_package() {
}
}
hunspell-sa_package() {
short_desc="Sanskrit dictionary for hunspell"
depends="hunspell-qtwebengine-dict"
license="LGPL-3.0-or-later"
pkg_install() {
_vhunspell sa_IN
}
}
hyphen-sa_package() {
short_desc="Sanskrit hyphenation rules"
license="LGPL-3.0-or-later"
pkg_install() {
_vhyphen sa_IN
}
}
hunspell-si_package() {
short_desc="Sinhala dictionary for hunspell"
depends="hunspell-qtwebengine-dict"
@ -1307,6 +1428,15 @@ hunspell-sw_package() {
}
}
hunspell-ta_package() {
short_desc="Tamil dictionary for hunspell"
depends="hunspell-qtwebengine-dict"
license="MPL-1.1"
pkg_install() {
_vhunspell ta_IN
}
}
hunspell-te_package() {
short_desc="Telugu dictionary for hunspell"
depends="hunspell-qtwebengine-dict"
@ -1341,6 +1471,14 @@ hyphen-th_package() {
}
}
mythes-th_package() {
short_desc="Thai thesaurus for LibreOffice"
license="CC0-1.0"
pkg_install() {
_vmythes -v 2 th_TH
}
}
hunspell-tr_package() {
short_desc="Turkish dictionary for hunspell"
depends="hunspell-qtwebengine-dict"

1
srcpkgs/mythes-mr Symbolic link
View file

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

1
srcpkgs/mythes-th Symbolic link
View file

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