508 lines
26 KiB
Bash
508 lines
26 KiB
Bash
|
# Template file for 'libreoffice-i18n'
|
||
|
pkgname=libreoffice-i18n
|
||
|
version=5.1.0
|
||
|
revision=1
|
||
|
build_style=meta
|
||
|
nocross=yes
|
||
|
hostmakedepends="rpmextract"
|
||
|
short_desc="LibreOffice localization files"
|
||
|
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
|
||
|
license="LGPL-3"
|
||
|
homepage="http://www.documentfoundation.org/"
|
||
|
_url="http://download.documentfoundation.org/libreoffice/stable/${version}/rpm/x86"
|
||
|
distfiles="
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_helppack_am.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_helppack_ast.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_helppack_bg.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_helppack_bn-IN.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_helppack_bn.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_helppack_bo.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_helppack_bs.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_helppack_ca-valencia.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_helppack_ca.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_helppack_cs.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_helppack_da.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_helppack_de.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_helppack_dz.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_helppack_el.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_helppack_en-GB.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_helppack_en-US.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_helppack_en-ZA.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_helppack_eo.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_helppack_es.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_helppack_et.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_helppack_eu.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_helppack_fi.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_helppack_fr.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_helppack_gl.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_helppack_gu.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_helppack_he.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_helppack_hi.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_helppack_hr.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_helppack_hu.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_helppack_id.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_helppack_is.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_helppack_it.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_helppack_ja.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_helppack_ka.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_helppack_km.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_helppack_ko.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_helppack_mk.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_helppack_nb.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_helppack_ne.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_helppack_nl.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_helppack_nn.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_helppack_om.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_helppack_pl.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_helppack_pt-BR.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_helppack_pt.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_helppack_ru.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_helppack_si.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_helppack_sk.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_helppack_sl.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_helppack_sq.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_helppack_sv.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_helppack_tg.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_helppack_tr.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_helppack_ug.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_helppack_uk.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_helppack_vi.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_helppack_zh-CN.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_helppack_zh-TW.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_af.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_am.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_ar.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_as.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_ast.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_be.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_bg.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_bn-IN.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_bn.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_bo.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_br.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_brx.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_bs.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_ca.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_cs.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_cy.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_da.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_de.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_dgo.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_dz.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_el.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_en-GB.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_en-ZA.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_eo.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_es.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_et.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_eu.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_fa.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_fi.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_fr.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_ga.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_gd.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_gl.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_gu.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_he.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_hi.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_hr.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_hu.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_id.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_is.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_it.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_ja.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_ka.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_kk.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_km.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_kn.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_ko.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_kok.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_ks.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_lb.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_lo.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_lt.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_lv.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_mai.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_mk.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_ml.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_mn.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_mni.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_mr.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_my.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_nb.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_ne.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_nl.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_nn.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_nr.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_nso.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_oc.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_om.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_or.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_pa-IN.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_pl.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_pt-BR.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_pt.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_ro.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_ru.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_rw.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_sa-IN.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_sat.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_sd.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_si.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_sid.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_sk.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_sl.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_sq.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_sr.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_ss.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_st.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_sv.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_sw-TZ.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_ta.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_te.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_tg.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_th.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_tn.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_tr.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_ts.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_tt.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_ug.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_uk.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_uz.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_ve.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_vi.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_xh.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_zh-CN.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_zh-TW.tar.gz
|
||
|
${_url}/LibreOffice_${version}_Linux_x86_rpm_langpack_zu.tar.gz"
|
||
|
|
||
|
_languages=(
|
||
|
'af "Afrikaans"'
|
||
|
'am "Amharic"'
|
||
|
'ar "Arabic"'
|
||
|
'as "Assamese (India)"'
|
||
|
'ast "Asturianu"'
|
||
|
'be "Belarusian"'
|
||
|
'bg "Bulgarian"'
|
||
|
'bn "Bengali"'
|
||
|
'bn-IN "Bengali (India)"'
|
||
|
'bo "Tibetan"'
|
||
|
'br "Breton"'
|
||
|
'brx "Bodo"'
|
||
|
'bs "Bosnian"'
|
||
|
'ca "Catalan"'
|
||
|
'ca-valencia "Catalan (Valencia)"'
|
||
|
'cs "Czech"'
|
||
|
'cy "Welsh"'
|
||
|
'da "Danish"'
|
||
|
'de "German"'
|
||
|
'dgo "Dogri"'
|
||
|
'dz "Dzongkha"'
|
||
|
'el "Greek"'
|
||
|
'en-GB "English (GB)"'
|
||
|
'en-ZA "English (ZA)"'
|
||
|
'eo "Esperanto"'
|
||
|
'es "Spanish"'
|
||
|
'et "Estonian"'
|
||
|
'eu "Basque"'
|
||
|
'fa "Persian"'
|
||
|
'fi "Finnish"'
|
||
|
'fr "French"'
|
||
|
'ga "Irish"'
|
||
|
'gd "Gaelic (Scottish)"'
|
||
|
'gl "Galician"'
|
||
|
'gu "Gujarati"'
|
||
|
'he "Hebrew"'
|
||
|
'hi "Hindi"'
|
||
|
'hr "Croatian"'
|
||
|
'hu "Hungarian"'
|
||
|
'id "Indonesian"'
|
||
|
'is "Icelandic"'
|
||
|
'it "Italian"'
|
||
|
'ja "Japanese"'
|
||
|
'ka "Georgian"'
|
||
|
'kk "Kazakh"'
|
||
|
'km "Khmer (Cambodia)"'
|
||
|
'kn "Kannada"'
|
||
|
'ko "Korean"'
|
||
|
'kok "Konkani"'
|
||
|
'ks "Kashmiri"'
|
||
|
'lb "Luxembourgish"'
|
||
|
'lo "Lao"'
|
||
|
'lt "Lithuanian"'
|
||
|
'lv "Latvian"'
|
||
|
'mai "Maithili"'
|
||
|
'mk "Macedonian"'
|
||
|
'ml "Malayalam"'
|
||
|
'mn "Mongolian"'
|
||
|
'mni "Manipuri"'
|
||
|
'mr "Marathi"'
|
||
|
'my "Burmese"'
|
||
|
'nb "Norwegian Bokmal"'
|
||
|
'ne "Nepali"'
|
||
|
'nl "Dutch"'
|
||
|
'nn "Norwegian Nynorsk"'
|
||
|
'nr "Ndebele (South)"'
|
||
|
'nso "Northern Sotho"'
|
||
|
'oc "Occitan"'
|
||
|
'om "Oromo"'
|
||
|
'or "Oriya"'
|
||
|
'pa-IN "Punjabi (India)"'
|
||
|
'pl "Polish"'
|
||
|
'pt "Portuguese"'
|
||
|
'pt-BR "Portuguese (Brasil)"'
|
||
|
'ro "Romanian"'
|
||
|
'ru "Russian"'
|
||
|
'rw "Kinyarwanda"'
|
||
|
'sa-IN "Sanskrit (India)"'
|
||
|
'sat "Santali"'
|
||
|
'sd "Sindhi"'
|
||
|
'si "Singhalese"'
|
||
|
'sid "Sidama"'
|
||
|
'sk "Slovak"'
|
||
|
'sl "Slovenian"'
|
||
|
'sq "Albanien"'
|
||
|
'sr "Serbian"'
|
||
|
'ss "Swati"'
|
||
|
'st "Southern Sotho"'
|
||
|
'sv "Swedish"'
|
||
|
'sw-TZ "Swahili (Tanzania)"'
|
||
|
'ta "Tamil"'
|
||
|
'te "Telugu"'
|
||
|
'tg "Tajik"'
|
||
|
'th "Thai"'
|
||
|
'tn "Tswana"'
|
||
|
'tr "Turkish"'
|
||
|
'ts "Tsonga"'
|
||
|
'tt "Tatar"'
|
||
|
'ug "Uighur"'
|
||
|
'uk "Ukrainian"'
|
||
|
'uz "Uzbek"'
|
||
|
've "Venda"'
|
||
|
'vi "Vietnamese"'
|
||
|
'xh "Xhosa"'
|
||
|
'zh-CN "Chinese (simplified)"'
|
||
|
'zh-TW "Chinese (traditional)"'
|
||
|
'zu "Zulu"'
|
||
|
)
|
||
|
|
||
|
do_build() {
|
||
|
for i in $distfiles; do
|
||
|
_localver="${version}.3"
|
||
|
_tarbname="${i##*/}"
|
||
|
_tarbname="${_tarbname%*.tar.gz}"
|
||
|
_lang="${_tarbname##*_}"
|
||
|
echo "Unpacking ${_tarbname}..."
|
||
|
# We create a directory using p_${_lang}, for example p_zh-TW, containing
|
||
|
# opt/libreofficeX.Y/lib/libreoffice, with helppack and/or langpack
|
||
|
# extracted inside it.
|
||
|
mkdir -p ${wrksrc}/p_${_lang}
|
||
|
cd ${wrksrc}/p_${_lang}
|
||
|
if [ -d "${wrksrc}/LibreOffice_${_localver}_Linux_x86_rpm_helppack_${_lang}/RPMS/" ]; then
|
||
|
rpmextract ${wrksrc}/LibreOffice_${_localver}_Linux_x86_rpm_helppack_${_lang}/RPMS/*.rpm
|
||
|
fi
|
||
|
if [ -d "${wrksrc}/LibreOffice_${_localver}_Linux_x86_rpm_langpack_${_lang}/RPMS/" ]; then
|
||
|
rpmextract ${wrksrc}/LibreOffice_${_localver}_Linux_x86_rpm_langpack_${_lang}/RPMS/*.rpm
|
||
|
fi
|
||
|
mkdir -p lib/libreoffice
|
||
|
cp -pR opt/libreoffice${version%.*}/* lib/libreoffice/
|
||
|
rm -rf opt
|
||
|
done
|
||
|
}
|
||
|
do_install() {
|
||
|
:
|
||
|
}
|
||
|
|
||
|
create_wrksrc=yes
|
||
|
depends="libreoffice>=${version} ${subpackages}"
|
||
|
|
||
|
for _lang in "${_languages[@]}"; do
|
||
|
_locale=${_lang%% *}
|
||
|
_pkgname=libreoffice-i18n-${_locale}
|
||
|
|
||
|
depends+=" ${_pkgname}>=${version}"
|
||
|
|
||
|
eval "${_pkgname}_package() {
|
||
|
_pkgtmpl ${_lang} ${version%.*}
|
||
|
}"
|
||
|
done
|
||
|
|
||
|
_pkgtmpl() {
|
||
|
_lang="$1"
|
||
|
_version="$3"
|
||
|
depends="libreoffice>=${version}"
|
||
|
short_desc="LibreOffice localization files - $2 language pack"
|
||
|
noarch=yes
|
||
|
pkg_install() {
|
||
|
vmkdir opt/libreoffice${_version}
|
||
|
mv ${wrksrc}/p_${_lang}/lib ${PKGDESTDIR}/opt/libreoffice${_version}/
|
||
|
}
|
||
|
}
|
||
|
|
||
|
checksum="
|
||
|
14a336e1de4e26a1da31dc1676f406375dc4a6f76d28b76aadc30c74a728777c
|
||
|
141c77bf7d8bd8e76ce2afe7560dfb340f2a0765e6635ad2229a1ba12ddba776
|
||
|
3a3ceffabf96fea468f4c758a7221839291181814e625fc63b7d2d43d21c64d8
|
||
|
e9188730cd060fc2c7acf6969e9e817b49ae2da0ffd2b52e646a669d07956550
|
||
|
da2ab310ccd497d971d11d2ce1db5c33f5c7effaa3557a8a68a97ebe47660075
|
||
|
418ada459d23f737c8126b81e34da1274cf6d602c5ed1a196f336d3947768d9d
|
||
|
f57b5dcc43a4907f0b5393d17928e05ed04f9b3ec7c7e4381a9d9c1369204359
|
||
|
b14022532cb00350bd295c51a93c3adf311e0fe2b901519d0992bf0bddcefe12
|
||
|
33240b2c20e588275e5b0100b175919ffbc11993280332e6eb54b5d5aefa77fa
|
||
|
4290b0e8ca6c5e021df89a914b887780cfc73f7211d144114a10d2f0781c744f
|
||
|
7fe28e97ac9df0edc576101858ce294eb9aaf3b0eccec25eab214d621207255f
|
||
|
d9f4e7e823eb6b91583e76104a05620ad44136f1c7b6a079d175fd14c2fec688
|
||
|
e2e6925dd7e5d13e8a57c79769e3421935c421c3284c1f882b5ba37f71583401
|
||
|
e37365a271f1f6347203bd4bc151cf5ab42d7932812e2373caf9e2705c21f591
|
||
|
5632b29840d78a998da0496e98e79f986f6144cd03fa4bd32f29021c1574d311
|
||
|
d65e8a48089a44981c362739635bf96eaaf475211a014fb03784dac0ee3c8737
|
||
|
2d220a8546415678edb760e56f00855cbb628d715031389ce3e6c08a30cf11df
|
||
|
666547baa43df35c8590d67b39178e22d2625ddf064f9d7d7cc716c6471b2d41
|
||
|
f3c30cd92a40898bc59d425d8de1820c8dd3aca724e8fa9642a4b61bc6e1a843
|
||
|
d0d3304d606686cd5bec6f74e012ff66cf5f3b6b931aee38975a1ff5b5ef2ac2
|
||
|
2e688a9dea2374a098d4f1f110b968292e16a2e87ff3f6605c529a356e20aa7f
|
||
|
fdf099b504ac5402dc49c9ce5ab7c4cfd3a891149f9ef70efc2ba240e7dbef80
|
||
|
120e947bc81884c5c550bb6f80af7f426797b82fb8ca0af8ae4c765e2943ed87
|
||
|
5a140c2ee496e25b8b4b809465c69796dd1a553dec9ae307b75882e9d6153831
|
||
|
ec6379cbb6531fc4da4c531beb0b04aba2d5f95ac4d3afb342e9702fc00f9ca1
|
||
|
24391fa19abd5443ed4c0e5d931f4d681d6c38ef07d008cdd80c1adaacdc1024
|
||
|
554db897271abb8ba03712720b12bdb7ee843b605d313811c748e0c6c084a34b
|
||
|
9a7c4ee3b7e2b0f69ccf34acef21862bfe97c2d75ea04557b465e8fc3afa8eae
|
||
|
bf4c8528a4bcb75cedbe75ba63ca5acc143d71388ed97237e5b12b31e86d57cf
|
||
|
b5b5a6218c540f1eb7e90ea75adab5ef6558233aa6a8d8e8b1a23468756beaef
|
||
|
c6d5cfe360cf62f88303771f424cc5c6182383260f06afb475663b3b0f9d48a6
|
||
|
668094861e772ef939fa62dc670f3012ec8767271cfeb0235c67245996a96484
|
||
|
c3ef645f01de9c8376b0653eba46c72b52397cdd917a8229790bb1c6b0751b3d
|
||
|
bf48cdadd87dd1f1979c3c35368c44dbaf64fda2d2f14dd2b686001386a96d36
|
||
|
2b91e44317ecb60c9a1450e6da74e13a3f665a89f74d534178f1d10066f51be3
|
||
|
4d594752f69e2ecf3769829bcf08c1b7eaa6f4b802d5c81c98bba916f1402270
|
||
|
536f179944ad6b815b288dd25460d3272f02c2c9a46d8e2a826df5302e019e86
|
||
|
c942572cff98534ccc485ef96600c9bcc00e45ebb387692a60eb94429733698c
|
||
|
5af30a788deb8b84c33bf1e5cf97a99abb9a98efa728ea4c20c068985648b809
|
||
|
7f423cbad71209c219041f6e71ed4a54c47a78cdf2dadcb8e9e905a2b6c68a68
|
||
|
5b541569900737097669d9f3c617f287de4a9bf631d2ea817e08628e8235c63b
|
||
|
1a7d6d291a0ee801c03ada3cf42b1ffc3f2e49485c537c883960eb0f04275091
|
||
|
e81e3b929c411d4c5e0e37f8eb48df3994f54892fb6bc61207e7dd1e2035062e
|
||
|
b0fde34d03222e1470c5fb27353ed5148f486bd7ce0829712e8111a4c9ba4a06
|
||
|
62892b4b4a706c484fe5e4a75137e81b3ea58ade1fc8185231e1f2ee15c198b1
|
||
|
421fbd519bee4fa2ba5537140d513ecce607aa5f0246734546c02e011d8106f3
|
||
|
04eb1887fdab5d19861ab31a47bff4ae9ef3ca5048fb44f14f67e3b053355baf
|
||
|
a04a565175394c0a000d58b30c507e1d8acdf94cd15bf9c25a37337d463e2154
|
||
|
b27962eb415e4fecf5f8596fa6f69f4d2fdf3f856dba68cff005204360ed1eec
|
||
|
1b5113c6e10c7aa28774a99888ccbc82cdefcdfd34cdedc1bc31739798d52f9d
|
||
|
6f541c145ff40d69760d27b12f28332cbab52ec6ad859d3e80108f35240cc4b1
|
||
|
b73bc9eb28833b8cdde3a39758db9ba6153badff5f1d5aa6d3b8d39e7a8fc242
|
||
|
d81718f0e77347d79c18ad16d1f3c630a516fbfcb8341ce571fed8690f1f80fb
|
||
|
c85cbe913b4ff7b8400c58999193724268b87fbfb87c9981a84bd2844fd811a1
|
||
|
201a2bd98cbc6c97545e8cfd926e278a7da96ea8f3a8de7e4722c77d8bfb852d
|
||
|
1249aa08e17c97f70263c7a4e844ede468364ac264a71c06978d547bccf29d9d
|
||
|
5293367d3fe21743b55288b70a2290df9c3f435ce2102fca17bf4c575c620666
|
||
|
12d037256cd6919e27c3314c30120db8a3f305b7f78b2b275f46d23b92d2aca3
|
||
|
250327ef5b9835e76ff589320a32dbeb439387ac9fcc6be744975992a524a1f8
|
||
|
4b99874d0d74f33704f1cfa50ae120c2cfdc4432085bf26ff86d39c609459d93
|
||
|
1639ba18df5f23477d74995e01bd5418a3ce54434d336732a5a3a60f65fff054
|
||
|
ecc0c8b32e7edbb22f38ddff95e544cb3d151cdfa28d7a3d5268dfb347b80f32
|
||
|
3ff7c9b920ddf3cf0683ea25ccdade9df75a745da6b36dd7e696c0d07a45dcf2
|
||
|
51102958a59a617cea81491554f0924b84719a7f5c1e70343f9ef3ab7033c635
|
||
|
c54b8d0261640e21c6d64b979574d460d1815494b501736179a2b0d31e92ce9a
|
||
|
5219e64519b0b9b8c5d749a75457637b1f666c39d859c14ace586dc609a55b32
|
||
|
6272c6aabd0cacb6dc5f50c0793fda5b189356f5226fcb6c9905cafe05f3e192
|
||
|
2f6da3fa0a4cf58a7a4c7ebda060da1fdd3384ca102d8ef56b2cd1b6f9058794
|
||
|
8f9eed6faba6a3c3c79a7e8f72ee34a5fed429956097d524b106774d705ce94a
|
||
|
558ff01b1fd70350b767375f1ae96cefa273dd0cc819f93edac35ab36a2b5eee
|
||
|
48322785d163a46e9ba50eff75bf774f2414c39d0ae342eed6c3c1b583635ba1
|
||
|
682fc00eb03acd1ab13e34456196d30e6a7f999d7e3fdbf50f0943ca6bafbfab
|
||
|
1439e4f5ddde6ef4c18e2e6d0a7df86a3f513669db6eb7d6484357d9bc55c71a
|
||
|
e475b0be8175304538e20dc11f8a0969a5165611ae6c59dc7b99a4698120733f
|
||
|
2be1f4659a2c58c50cc64712a25a6bccef061e97709821d51f4772f9dd47eae8
|
||
|
3f35eeef160e1290648427a35bfa38bc368d147dcd2ad77d34b7f82ccd3926e3
|
||
|
998f84bec4fa93c674dd5beaff559871a418cca2d41e80f54b3397855d060f4c
|
||
|
9745d84d8ebdde9244e0b43a4bbdfd48c547366215e5c8ca2484001d39d61ad6
|
||
|
27f111a35f765cfb15cfc44c60fc6c1148986885a32592e589c706b26f709969
|
||
|
8b438c808035aa34883893546b1d6cfa8b8be1e387cff4051acbf697b91ee1b7
|
||
|
a1cf8b209aeb75f8356b38ba019fa19cbfea97a9de199cc7b184f8dfdbe13171
|
||
|
37b0f2405eaddb59ea082c10216b4a547ebebe2a3188a340bbbeb77d277159b8
|
||
|
7d4946682e35f88269fe20800da37143b39b673509b7958a6454db3e8347be1f
|
||
|
91697fcd02dafa16634611d24e6f402ffb73f8a1b8d4bcfee39d94a8de1c545b
|
||
|
be1b25e0a3069a53add4166eee2ef948df0341a30f872a62c5b70c771a9e8b32
|
||
|
620d9a240cb89e0a9611a235618c5d2023e43bb214ec245bac5bb142f18e829b
|
||
|
be1e9228eed275163848ad6cbc6b346a88c6cfdaa0bee321e19d0c782dc8d9f3
|
||
|
865cac85f474b7ad24832b273f86fec11de0c977a33475c7a9d51bac1233c162
|
||
|
ad8937141f7a0bcbc7d6bdf6746ac7f7a21999513c95400c549e80b17398ed1f
|
||
|
d7781200c174ceec80b5844e1a540b57f827445efb94c3b5c0461bf9399aaedf
|
||
|
a50ec44b4aa46345a13b665b9d5831a3c41fd9586ae75b54ab8b277d6b362ad7
|
||
|
d112a6f5575c8adfd17e76c9f197d4d37314805cf96e371ea902823cabf6b3ef
|
||
|
c75af52c8c6913c2cff8b1baae201c8e66d8511b753eaaaf4fdbdecc1648e75a
|
||
|
baf0aa1188ec3024af26b0434d10ab51df6699684c262e0b9673a7bfa0890e01
|
||
|
21fcc79815a3ddf4d2924bd7c7703888e8091116f0e736cc35bae1725257132d
|
||
|
b9a170eb9cb313117eca43aee5e96bf7130852e7039d18afacc669fce1a4a081
|
||
|
9ec32ed0e6912a50a545335e49f4300188aa7efb2dfbdaf6eb80e31eb66be4f3
|
||
|
f13eff3a0a8ab8115e81171b9c0fee5e7ac7b8450689491d30929e6356f497bf
|
||
|
7f44a3dfd2ac83caf8700e7ccb54eef61de8c64f5038631d555cfbf2705410d4
|
||
|
aa99677eb671801354973ae78a383fcb4779869f809357c3df043d856203073d
|
||
|
05a9b291abd2328402952b6b8fc1e95320a4805c48c53952de33fd2cbf578e7c
|
||
|
be2410ae1701b8a15b0207972c62ab1e1432547265bfa4fc162428e3f1b7a93a
|
||
|
4587bf5ce9cc3cdf6edd4f7d1e98bff7c3d7166f8070a6c34488afd0f4026997
|
||
|
b0d2ef7167dca62420f000d68e5e5bb66440fdb1a84121ba4386c6bf82c14693
|
||
|
cb6fb3a544f969b048e50a68eee73e0d6d4a57ff13f92155b3e2ebdb1c6d847b
|
||
|
e0daf57163ee436c5c7283566f20a1638e59cea336cface4cc389282d7ea659e
|
||
|
35110b8904b769100c0bb40502918130dfdf566d6079714153a2cd4187ec8348
|
||
|
31489844ca1da95d5da39fcb4502d7fe148cbdb8b8f0e64eb1031626c1a9a30d
|
||
|
22d9e33c37a4ba9aed7c35a85ed18788705240ea7c99cbfc9487aec9c07ef6b8
|
||
|
a2c8bd1eeb2573147e90605708b6899a7920463e8c603fa28252743188bc2e7f
|
||
|
9dda3e517db4eac7018379f959678af9ca3900fa319b47c3b2fb664361235a37
|
||
|
9fed724573f9aaadd6f4e98760b319ffc4f6c29a5d652ab3b350f8115c072689
|
||
|
1351cc30b42c9007e8a03466a25539b3c8c24cfd7c0549c23d65e8923cf24eb1
|
||
|
5fa512b8f65890f75124e6fe3fc63a5d26c69a771b6fd3733aa9fc35d7ed4a61
|
||
|
f41e61faec80b822ce89c2da3b75c814eb5796468f355403e5d09c027c9a9102
|
||
|
d0aa58ea4c48770709d8e34e84982bea08419f18aeaae64437593a55ac692473
|
||
|
9157b1c2f2fe52fa8ffbd2555bfed540021e056acd1f96bdf66bbbae93e49b1f
|
||
|
2e957ab1c5f5fb7f1497b20d014df97bff9d98a00856edac954b8a02f22ec852
|
||
|
dc8bbeff74f8188d03b230d87b352cf9f2e78f178c8e1b05fa06b0ef57ba8311
|
||
|
200b27a078514b7f39ca58b0fb86caf461a4bc4b43a45d013bc4e03840e947ab
|
||
|
1c9c8f71f7e9bf5f4a66b0a623c0a547534460f0d22deaee6b7a439a2e652bbe
|
||
|
d067062a888d861f3811b49694e7c0e2697f2e1195b3e4ac40900b9664e64cdf
|
||
|
fc1d8024b8738b37b78abb61eeec7e88d8e7fc45f5537982cae8d603dc49a8f3
|
||
|
808572cd2a942f4e3171fee46ee64463a21b55624fe3ab2465fb1bc253c1189b
|
||
|
8eeb552beb8b7a386c43df7f5abffc667baed078b0086877fc7308ec0981696d
|
||
|
cb4c26c5a2ead9acba459b6cf179e9331d098e1bb028c08196c744effc82ccb6
|
||
|
11c48de161136cfd9b3525f41f1bcc3225c29372663279d8c0125b43f652f604
|
||
|
48b08efc80f68584750c1fe0a81f1e0235bcba06eb32e81c1cf953be6713dedf
|
||
|
c2a93ffda3ae37bca593bc495f722981c041a435db5649dbf31ea994a4cc2dd7
|
||
|
990a5bbca5578e82b712dda0373ae39489b1b76ba3e372d65cfc018ed0cc6c96
|
||
|
9dc5c237db7ce753a3535fa370be60aa77512373a71eeecaffb21c14d2ecc765
|
||
|
5f5118cb686a466386dfa0bfdaef96440065464298a0fccf1fc0b965564f451d
|
||
|
4f3a50d285b547cd9f081426664c39719e2911e8bd8f69be123d2527377080ef
|
||
|
49db4db8ee9c3835c1ad96b0eab4466728ee4a6cf2a3a91cedc7dccd07903e82
|
||
|
ec0508fb556a88e15c5b31906c9ca6a7f77afa87b5fe420abe9299f3a7be3d5d
|
||
|
4f86d558a8f7bb5218a3abc6198fe69b1b1d1d7a6959f0bede95e29a152dd505
|
||
|
349a20043fce58fd4fb64e83e32cf7afcd6518d2cf11778d2e601f6cbb4c27df
|
||
|
6e260a11f59f77aad52b013b8d7992893c72dbe2c170c0b9047af893e45dbfab
|
||
|
6d0ca5f5543717631191cc1f387dc5597e4cc7c5f1afa5b44070ecc7d0f39afc
|
||
|
10f0da3cc7cfabcc875b80529bcdc9aa71f64c886d6bd6bbcebe21d7fc67f3c8
|
||
|
f73eee35e77c91ee391e0e4b3784617ff40478dff6b218e6232929abd15f4487
|
||
|
6587300237c35f5043791bfc3ca797ee6d26aead20fe24f489279a67ff25f6e3
|
||
|
333f34cb116369f9b5bbc364d6aa7d92bef990cbf7524f80e0872aadc7c4c96d
|
||
|
bb8ba8e73f717e810237144df1373d090d76b0c8f3882deb7f3d7114223c3639
|
||
|
8b805e37462292207f90518eb42b6155b288b96e6f4ec2ad0d7872beed4f4f07
|
||
|
45b60afadd2851b82583f18adf31560f2ece03861beaefd62b137ab7cfb3c3a5
|
||
|
dc47178d0daae35d7618427a4c298c2f788207dfc26062367c39b82415d3bddd
|
||
|
d53402e1d776e7a52454c11d2380ebd733749558537c795dd779007c0c372935
|
||
|
0932e3d8f1d3d035da67673e1231b7f0856e9de2429275d3c3f4be6aebcae8fb
|
||
|
3b896ce51490c550f0098602b0a579c3aab01421b156f370b5073482f581aa09
|
||
|
2f755aa4c384706673a1a72421bb87f28a7e4c418132cf473f44f594cdc81507
|
||
|
d110b4b085f7d3fe7673111cb9c98a3f8853caeeb28dc820dd4e7348412e052b
|
||
|
c314662c49c054a91f309c12e57672a68f5845a741b9afc581afb4ab7e787966
|
||
|
76df69714f013a52ead88d3bf762624cca4a041982e994d60709dfaf68517c32
|
||
|
a1ebb8e37eea68fbeb01f346c066c317b45a8274d52970be4d166b4dc3516e7d
|
||
|
1159034d1f2385b378ae91fee419225f6f296527002a6aba1389f8dfd8c6a951
|
||
|
bffad6b41ada73dfe7237c1b1cabf4e067383193838cce88492ac451f6834e43
|
||
|
33e2c14c2cbeec3a7bb9b43fed3ddc19433284e1328b93e7ed3226d1c9435874
|
||
|
3b0514851f3bc0270fe0333d0c34e5d315a711c0a07b8849099e92cfc1deefc3
|
||
|
78d8a8ba19e9813334ee2b136497a939d55e7a9eb6136ee8f97c8924dd105203
|
||
|
9461e123978d9bcef32724df7b898ef9ba271cfa137fd8ca1a2d0e2d60c59406
|
||
|
80baa0e0c65810d037ec6def3737180e3089602edee768b19ffea45c1e3b1b3f
|
||
|
b13dcb164621479acecfa50dadcadd9df4738b959a11f097eda7589e7a5ec630
|
||
|
f645c133a2076739388323481bb5ff7bf7a2fa34be9822d92b36c74cefdbe245
|
||
|
"
|