libreoffice: not pulling all dictionaries anymore

This commit is contained in:
Đoàn Trần Công Danh 2024-04-19 08:57:34 +07:00
parent 07464d8375
commit 382cfce6b8
1 changed files with 86 additions and 75 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'libreoffice' # Template file for 'libreoffice'
pkgname=libreoffice pkgname=libreoffice
version=24.2.2.2 version=24.2.2.2
revision=1 revision=2
build_style=meta build_style=meta
make_build_target="build" make_build_target="build"
hostmakedepends="automake flex gperf hyphen icu libtool openldap which gettext xz hostmakedepends="automake flex gperf hyphen icu libtool openldap which gettext xz
@ -201,10 +201,22 @@ _split() {
unset _languages unset _languages
_add_lang() { _add_lang() {
local pkglang="${3:-$1}" local pkglang tmp
local deps=
local pkg=$1
local name=$2
shift 2
while case "$1" in
-h*) tmp=${1#-h}; deps="$deps hunspell-${tmp:-$pkg}" ;;
-H*) tmp=${1#-H}; deps="$deps hyphen-${tmp:-$pkg}" ;;
-m*) tmp=${1#-m}; deps="$deps mythes-${tmp:-$pkg}" ;;
-l*) pkglang=${1#-l} ;;
*) false ;;
esac; do shift; done
_languages="$_languages ${pkglang//_/-}" _languages="$_languages ${pkglang//_/-}"
eval "libreoffice-i18n-${1}_package() { eval "libreoffice-i18n-${pkg}_package() {
short_desc+=\" - ${2} language pack\" short_desc+=\" - ${name} language pack\"
depends='$deps'
pkg_install() { pkg_install() {
_split lang_${pkglang} _split lang_${pkglang}
} }
@ -212,57 +224,57 @@ _add_lang() {
} }
# _add_lang ab "Abkhazian" # _add_lang ab "Abkhazian"
_add_lang af "Afrikaans" _add_lang af "Afrikaans" -h -H
_add_lang am "Amharic" _add_lang am "Amharic"
# _add_lang an "Aragonese" # _add_lang an "Aragonese"
_add_lang ar "Arabic" _add_lang ar "Arabic" -h -m
_add_lang as "Assamese" _add_lang as "Assamese"
_add_lang ast "Asturian" _add_lang ast "Asturian"
# _add_lang az "Azerbaijani" # _add_lang az "Azerbaijani"
_add_lang be "Belarusian" _add_lang be "Belarusian" -h -H
_add_lang bg "Bulgarian" _add_lang bg "Bulgarian" -h -H -m
_add_lang bn "Bengali" _add_lang bn "Bengali" -h
_add_lang bn-IN "Bengali (India)" bn_IN _add_lang bn-IN "Bengali (India)" bn_IN -h
_add_lang bo "Tibetan" _add_lang bo "Tibetan" -h
_add_lang br "Breton" _add_lang br "Breton" -h
_add_lang brx "Bodo" _add_lang brx "Bodo"
_add_lang bs "Bosnian" _add_lang bs "Bosnian" -h
_add_lang ca "Catalan" _add_lang ca "Catalan" -hca_ES -H -m
_add_lang ca-valencia "Catalan (Valencian)" ca_valencia _add_lang ca-valencia "Catalan (Valencian)" ca_valencia -hca_ES -Hca -mca
_add_lang ckb "Central Kurdish" _add_lang ckb "Central Kurdish" -h
_add_lang cs "Czech" _add_lang cs "Czech" -h -H -m
_add_lang cy "Welsh (Cymraeg)" _add_lang cy "Welsh (Cymraeg)"
_add_lang da "Danish" _add_lang da "Danish" -hda_DK -H -m
_add_lang de "German" _add_lang de "German" -h -H -m
_add_lang dgo "Dogri proper" _add_lang dgo "Dogri proper"
_add_lang dsb "Lower Sorbian" _add_lang dsb "Lower Sorbian"
_add_lang dz "Dzongkha" _add_lang dz "Dzongkha"
_add_lang el "Greek" _add_lang el "Greek" -hel_GR -H
_add_lang en-GB "English (UK)" en_GB _add_lang en-GB "English (UK)" -len_GB -hen -hen_GB -Hen -men
_add_lang en-US "English (US)" en_US _add_lang en-US "English (US)" -len_US -hen -Hen -men
_add_lang en-ZA "English (South Africa)" en_ZA _add_lang en-ZA "English (South Africa)" -len_ZA -hen -hen_GB -Hen -men
_add_lang eo "Esperanto" _add_lang eo "Esperanto" -h -H -m
_add_lang es "Spanish" _add_lang es "Spanish" -h -H -m
_add_lang et "Estonian" _add_lang et "Estonian" -h -H
_add_lang eu "Basque" _add_lang eu "Basque"
_add_lang fa "Persian (Farsi)" _add_lang fa "Persian (Farsi)" -h
_add_lang fi "Finnish" _add_lang fi "Finnish"
_add_lang fr "French" _add_lang fr "French" -hfr_FR -H -m
_add_lang fur "Friulian" _add_lang fur "Friulian"
_add_lang fy "Frisian" _add_lang fy "Frisian"
_add_lang ga "Irish" _add_lang ga "Irish"
_add_lang gd "Scottish Gaelic" _add_lang gd "Scottish Gaelic" -h
_add_lang gl "Galician" _add_lang gl "Galician" -h -H -m
_add_lang gu "Gujarati" _add_lang gu "Gujarati" -h
_add_lang gug "Guaraní (Paraguay)" _add_lang gug "Guaraní (Paraguay)" -h -m
_add_lang he "Hebrew" _add_lang he "Hebrew" -h
_add_lang hi "Hindi" _add_lang hi "Hindi" -h
_add_lang hr "Croatian" _add_lang hr "Croatian" -h -H
_add_lang hsb "Upper Sorbian" _add_lang hsb "Upper Sorbian"
_add_lang hu "Hungarian" _add_lang hu "Hungarian" -h -H -m
_add_lang id "Indonesian" _add_lang id "Indonesian" -h -H -m
_add_lang is "Icelandic" _add_lang is "Icelandic" -h -H -m
_add_lang it "Italian" _add_lang it "Italian" -hit_IT -Hit_IT -mit_IT
_add_lang ja "Japanese" _add_lang ja "Japanese"
# _add_lang jv "Bedjond" # _add_lang jv "Bedjond"
_add_lang ka "Georgian" _add_lang ka "Georgian"
@ -270,75 +282,75 @@ _add_lang kab "Kabyle"
_add_lang kk "Kazakh" _add_lang kk "Kazakh"
# _add_lang kl "Aklanon" # _add_lang kl "Aklanon"
_add_lang km "Khmer" _add_lang km "Khmer"
_add_lang kmr-Latn "Kurmanji Kurdish (Latin)" kmr_Latn _add_lang kmr-Latn "Kurmanji Kurdish (Latin)" -lkmr_Latn -hkmr
_add_lang kn "Kannada" _add_lang kn "Kannada"
_add_lang ko "Korean" _add_lang ko "Korean" -h
_add_lang kok "Konkani" _add_lang kok "Konkani"
_add_lang ks "Kashmiri" _add_lang ks "Kashmiri"
# _add_lang ky "Aka-Kol" # _add_lang ky "Aka-Kol"
_add_lang lb "Luxembourgish" _add_lang lb "Luxembourgish"
_add_lang lo "Lao" _add_lang lo "Lao" -h
_add_lang lt "Lithuanian" _add_lang lt "Lithuanian" -h -H
_add_lang lv "Latvian" _add_lang lv "Latvian" -h -H -m
_add_lang mai "Maithili" _add_lang mai "Maithili"
_add_lang mk "Macedonian" _add_lang mk "Macedonian"
_add_lang ml "Malayalam" _add_lang ml "Malayalam"
_add_lang mn "Mongolian" _add_lang mn "Mongolian" -h -H
_add_lang mni "Meithei (Manipuri)" _add_lang mni "Meithei (Manipuri)"
_add_lang mr "Marathi" _add_lang mr "Marathi"
_add_lang my "Burmese" _add_lang my "Burmese"
_add_lang nb "Norwegian (Bokmal)" _add_lang nb "Norwegian (Bokmal)" -hno -Hno -mno
_add_lang ne "Nepali" _add_lang ne "Nepali" -h -m
_add_lang nl "Dutch" _add_lang nl "Dutch" -hnl_NL -Hnl_NL
_add_lang nn "Nynorsk" _add_lang nn "Nynorsk" -hno -Hno -mno
_add_lang nr "Ndebele (South)" _add_lang nr "Ndebele (South)"
_add_lang nso "Northern Sotho" _add_lang nso "Northern Sotho"
_add_lang oc "Occitan" _add_lang oc "Occitan" -h
_add_lang om "Oromo" _add_lang om "Oromo"
_add_lang or "Oriya" _add_lang or "Oriya"
_add_lang pa-IN "Punjabi (India)" pa_IN _add_lang pa-IN "Punjabi (India)" -lpa_IN
_add_lang pl "Polish" _add_lang pl "Polish" -h -H -m
_add_lang pt "Portuguese" _add_lang pt "Portuguese" -hpt_PT -Hpt_PT -mpt_PT
_add_lang pt-BR "Portuguese (Brazil)" pt_BR _add_lang pt-BR "Portuguese (Brazil)" -lpt_BR -hpt_BR -Hpt_BR -mpt_BR
_add_lang ro "Romanian" _add_lang ro "Romanian" -hro_RO -H -m
_add_lang ru "Russian" _add_lang ru "Russian" -hru_RU -H -m
_add_lang rw "Kinyarwanda" _add_lang rw "Kinyarwanda"
_add_lang sa-IN "Sanskrit (India)" sa_IN _add_lang sa-IN "Sanskrit (India)" -lsa_IN
# _add_lang sah "Yakut" # _add_lang sah "Yakut"
_add_lang sat "Santali" _add_lang sat "Santali"
_add_lang sd "Sindhi" _add_lang sd "Sindhi"
_add_lang si "Sinhala" _add_lang si "Sinhala" -h
_add_lang sid "Sidamo" _add_lang sid "Sidamo"
_add_lang sk "Slovak" _add_lang sk "Slovak" -h -H -m
_add_lang sl "Slovenian" _add_lang sl "Slovenian" -h -H -m
_add_lang sq "Albanian" _add_lang sq "Albanian" -h -H
_add_lang sr "Serbian" _add_lang sr "Serbian" -h -H
_add_lang sr-Latn "Serbian (Latin)" sr_Latn _add_lang sr-Latn "Serbian (Latin)" -lsr_Latn -hsr -Hsr
_add_lang ss "Swati" _add_lang ss "Swati"
_add_lang st "Southern Sotho" _add_lang st "Southern Sotho"
_add_lang sv "Swedish" _add_lang sv "Swedish" -h -H -m
_add_lang sw-TZ "Swahili (Tanzania)" sw_TZ _add_lang sw-TZ "Swahili (Tanzania)" -lsw_TZ
_add_lang szl "Silesian" _add_lang szl "Silesian"
_add_lang ta "Tamil" _add_lang ta "Tamil"
_add_lang te "Telugu" _add_lang te "Telugu" -h -H
_add_lang tg "Tajik" _add_lang tg "Tajik"
_add_lang th "Thai" _add_lang th "Thai" -h -H
# _add_lang ti "Tigrinya/Tigrigna" # _add_lang ti "Tigrinya/Tigrigna"
_add_lang tn "Tswana" _add_lang tn "Tswana"
_add_lang tr "Turkish" _add_lang tr "Turkish" -h
_add_lang ts "Tsonga" _add_lang ts "Tsonga"
_add_lang tt "Tatar" _add_lang tt "Tatar"
_add_lang ug "Uyghur" _add_lang ug "Uyghur"
_add_lang uk "Ukrainian" _add_lang uk "Ukrainian" -h -H -m
# _add_lang ur "Urdu" # _add_lang ur "Urdu"
_add_lang uz "Uzbek" _add_lang uz "Uzbek"
_add_lang ve "Venda" _add_lang ve "Venda"
_add_lang vec "Venetian" _add_lang vec "Venetian"
_add_lang vi "Vietnamese" _add_lang vi "Vietnamese" -h
_add_lang xh "Xhosa" _add_lang xh "Xhosa"
_add_lang zh-CN "Simplified Chinese (People's Republic of China)" zh_CN _add_lang zh-CN "Simplified Chinese (People's Republic of China)" -lzh_CN
_add_lang zh-TW "Traditional Chinese (Taiwan)" zh_TW _add_lang zh-TW "Traditional Chinese (Taiwan)" -lzh_TW
_add_lang zu "Zulu" _add_lang zu "Zulu" -H
post_extract() { post_extract() {
local pkg f dir fname local pkg f dir fname
@ -495,8 +507,7 @@ do_install() {
libreoffice-common_package() { libreoffice-common_package() {
short_desc+=" - Common files" short_desc+=" - Common files"
depends="libreoffice-i18n-en-US>=${version}_${revision} depends="libreoffice-i18n-en-US>=${version}_${revision}"
libreoffice-dictionaries"
skiprdeps=/usr/lib/libreoffice/program/libofficebean.so skiprdeps=/usr/lib/libreoffice/program/libofficebean.so
replaces="libreoffice-epub>=0" replaces="libreoffice-epub>=0"
pkg_install() { pkg_install() {