mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
358 lines
13 KiB
Bash
358 lines
13 KiB
Bash
pkgbase="libreoffice-i18n"
|
|
|
|
_rcver=6.0.5.2
|
|
pkgver=6.0.5
|
|
pkgrel=1
|
|
depends=("libreoffice-common>=$pkgver")
|
|
|
|
_oodlver=${pkgver}
|
|
#_oodlver=${_rcver}
|
|
_dirver=${_rcver}
|
|
|
|
arch=('x86_64')
|
|
url="http://www.documentfoundation.org"
|
|
license=('LGPL')
|
|
makedepends=('rpmextract')
|
|
|
|
# http://wiki.documentfoundation.org/Language_Teams
|
|
_url="http://download.documentfoundation.org/libreoffice/stable"
|
|
|
|
#_url+="/${pkgver}-rc2/rpm/x86"
|
|
_url+="/${pkgver}/rpm/x86"
|
|
#_url+="/rpm/x86"
|
|
|
|
_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"'
|
|
'gug "Guarani"'
|
|
'he "Hebrew"'
|
|
'hi "Hindi"'
|
|
'hr "Croatian"'
|
|
'hsb "Sorbian (Upper)"'
|
|
'hu "Hungarian"'
|
|
'id "Indonesian"'
|
|
'is "Icelandic"'
|
|
'it "Italian"'
|
|
'ja "Japanese"'
|
|
'ka "Georgian"'
|
|
'kk "Kazakh"'
|
|
'km "Khmer (Cambodia)"'
|
|
'kmr-Latn "Kurdish"'
|
|
'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"'
|
|
'sr-Latn "Serbian (Latin)"'
|
|
'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"'
|
|
'vec "Venetian"'
|
|
'vi "Vietnamese"'
|
|
'xh "Xhosa"'
|
|
'zh-CN "Chinese (simplified)"'
|
|
'zh-TW "Chinese (traditional)"'
|
|
'zu "Zulu"'
|
|
)
|
|
|
|
prepare() {
|
|
for i in ${pkgname[@]}; do
|
|
_pkglang=${i#*-}
|
|
echo ${_pkglang} " unpacking..."
|
|
cd ${srcdir}/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_${_pkglang}/RPMS
|
|
|
|
# Remove dictionaries, which have duplicate files for different languages,
|
|
# to be shipped separately.
|
|
rm -vf *-dict-*.rpm || /bin/true
|
|
|
|
for j in *.rpm
|
|
do rpmextract.sh $j
|
|
done
|
|
|
|
# the helppack rpm goes also into the langpack dir - so far we don't want to split the helppacks separate
|
|
rpmextract.sh ${srcdir}/LibreOffice_${_dirver}_Linux_x86_rpm_helppack_${_pkglang}/RPMS/*.rpm || /bin/true
|
|
done
|
|
}
|
|
|
|
_package() {
|
|
pkgdesc="$2 language pack for LibreOffice"
|
|
provides=('libreoffice-langpack')
|
|
|
|
cd "$srcdir"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_$1/RPMS
|
|
mkdir -p "$pkgdir"/usr/lib/libreoffice
|
|
cp -R opt/libreoffice*/* "$pkgdir"/usr/lib/libreoffice
|
|
chown root:root -R "$pkgdir"/usr/lib/libreoffice
|
|
}
|
|
|
|
for _lang in "${_languages[@]}"; do
|
|
_locale=${_lang%% *}
|
|
_pkgname=libreoffice-$_locale
|
|
source+=(${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_langpack_${_locale}.tar.gz)
|
|
|
|
if curl -o /dev/null -s -I -f ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_helppack_${_locale}.tar.gz; then
|
|
source+=(${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_helppack_${_locale}.tar.gz)
|
|
fi
|
|
|
|
pkgname+=($_pkgname)
|
|
eval "package_${_pkgname}() {
|
|
_package $_lang
|
|
}"
|
|
done
|
|
md5sums=('bb543ac029a6920dc6347538474dba62'
|
|
'81af9d7f5d51236ba8178e2eff28e59e'
|
|
'80897e8b23e2355035e3cd46e2b1144f'
|
|
'3c316ea9bb19f4f8d6cce5f6c3e1cb5d'
|
|
'9f4f50976959ca4ac1eec2d4eab3adc2'
|
|
'fdd3268e2e41cc031c060739d345b4e2'
|
|
'802a80b48c50db78ab121c26febc5edd'
|
|
'fe8540e0a85c68862ae059ddb307bc26'
|
|
'166b059cf61fa42eb4118113d63ce579'
|
|
'bc1f4461d12c05119258b8eb20aaf96f'
|
|
'f0f6abeaa21bded390930e25ced4fe97'
|
|
'4343cb1e0e78832009bb8567212e1e2d'
|
|
'e954cc4ea0dc33b384540521133b4e4f'
|
|
'6d6152b355ab2d5f399a953b736e770c'
|
|
'69d621d9ff0f8765508ab0c805ab8626'
|
|
'6eb3b7aaa07f00c63bf9916b6ede6a25'
|
|
'eed4111260298d1979248afb06a88c66'
|
|
'12aceadfaa95d208a569e3a14ac60d03'
|
|
'91a8956c427be60c20c09d2fe44ac6bf'
|
|
'7f73bf5a2f0a245d70c2842d7d310271'
|
|
'35f7a86e4b16e9747757693e0482ee9c'
|
|
'f2d16a8a3503e02a367466d625ee1f59'
|
|
'ce564b11e290343da53a5269d561e772'
|
|
'ba379478bb90ba5976eb61ec069a3a70'
|
|
'9570b7b95fd13faeab184dadfbe2cfc1'
|
|
'0734a4ceacda11ea55d96a2987e88e13'
|
|
'577913269cdca6d188c7695509f65b69'
|
|
'27432eef7f64a398fb49ba9a0cfb0496'
|
|
'f22c9e484dd6a0b36f3d48d22016f76b'
|
|
'82d6eabd77019d6e471ec72c81f9227d'
|
|
'95e9b02f9afd38140f03c000b463e16d'
|
|
'730be7aac0ffeec8a8beb1a809f90cf5'
|
|
'50e1dc944437e1b6a356ff89d68fa5af'
|
|
'ed13fc49a7ce506fb1ff40e9b26c1ff0'
|
|
'e553abbe4126926946c0b12e67519eba'
|
|
'136d3b6818c85246ffc87e2634749f83'
|
|
'e259c3d04086ade8d9dc35187e107cd1'
|
|
'22ffd81787544f5f5f68fc7859ee6276'
|
|
'9a85d9b659ef69c1a7661851a8693f57'
|
|
'5aa8d31ebe29bedc77abdf0af05edb8b'
|
|
'3a26563b515367442d704b8163a073e5'
|
|
'1d6c7eb5f7c10e855f8da8b9dfb3a4a1'
|
|
'f57a68d5b9241bc5d22c1c5f4bfd2fd3'
|
|
'9f1e6944789f2f37a233b48955cbdf25'
|
|
'fcdff3947090640fdccc96ce5aae93ff'
|
|
'42378d98739e730a457509ab4506fb44'
|
|
'565182f37bba816a7e04653631663a44'
|
|
'f471c4b95ed70f8a00d4cbfb7c5555c1'
|
|
'be8653d19c255687fcc54abf0247501d'
|
|
'79c91978ee391ddbc296d37a4764bd4b'
|
|
'4a96af816a58b24aae4e7123e23928d7'
|
|
'6c6b71214b3ce601b3e775119174e6dc'
|
|
'e1265b9d7e4646c8e0420eb4db1d4fb9'
|
|
'13d1f4d06e27963ffcdcee8f84a1de10'
|
|
'4342975187cbf7826dbadd4854d1ad3f'
|
|
'228c82096bb3283b8f47f27e77b7f2c0'
|
|
'a097ada7be81d950d015c9b1901eb22b'
|
|
'2ab9523d12fcffcbf2b5e2359ee4659e'
|
|
'a4ebf73bfb87e499dd38d8b6aa076437'
|
|
'd2b20f56b4c1dc7f5ddfd57a57eab19c'
|
|
'c793fe51d97fd4f31348927934cf2f28'
|
|
'dda90ce897349faa37b0c8ad89282057'
|
|
'9560c4725dd4051b1bb403c9890b6c3b'
|
|
'a05413e908832ab847ea44a4ed102585'
|
|
'fd8e01c89b3c21b81ffc68b8acdb6b5c'
|
|
'c54848984896b752d8c7a753e33a51c3'
|
|
'eca36e6bca447870a5b04346e601d027'
|
|
'e4dced419538deb0ece3123097314def'
|
|
'c3fddce4881c171aefd36810b5f3b206'
|
|
'4d936a33f00061ccaca9146295810e52'
|
|
'04a327567f54c6c4e4f078eac4d6a46e'
|
|
'eec64568791cd8b35218b0d3b5551e01'
|
|
'1a6d4c50679c1e17b687d4b62fb22abf'
|
|
'fe44a9a1877ab1d96e2e29c8878eaeaf'
|
|
'c37d544b43f86d4cb1294f8bde33b74c'
|
|
'6589a2b3c3424bd77ed8b2f143c2c0da'
|
|
'669644296644fc020b66917e738805d1'
|
|
'288c2a85df874dbb8bee051945c06f33'
|
|
'c7c2354c635d808ae9a074e5ad962434'
|
|
'd00b136b59cf813b4ac0d40cfa329381'
|
|
'9d47617d6e833c4ce18cf21867df1dda'
|
|
'848da80d2bb0d7a3dd53c3e10a8f922d'
|
|
'73e1fd0a9e7b14145459cddb44105117'
|
|
'fdbdf26b965ca95f99cfeaf759bbeb9c'
|
|
'4765a28efc1d6a4eec65379fd108f761'
|
|
'07e9bb215f8e870a17ce15d2ac3b6dde'
|
|
'cbd706c3cce528522e90e4b82d2a4e58'
|
|
'97b3d4373636a0bddd923dff6af7a459'
|
|
'ebff2eace3fd81e6f9fe22deac03a803'
|
|
'a093b0074d66b1881209e52c7ac8507f'
|
|
'63ecb50043c1ad9bfd1c894129d83403'
|
|
'e34512f4d5cc448306feba6e8415d2f6'
|
|
'2f9704ea5ebddeb97d621b0e835d40f5'
|
|
'fb1ad9a9c3f91cf2a183cd78396a8a52'
|
|
'7e63462439297ccf08fe711c4b1ab8f7'
|
|
'ba9c7fa1351ddc27d3ecf8b0ac0317fd'
|
|
'67e0b46be58197c2675432dfc327d560'
|
|
'9befea317886c8b6777dc7effe51cda7'
|
|
'9d066ac5142ef185517c0fb9b8653639'
|
|
'04d61f96f99ac5598bf8f56d8dc25565'
|
|
'3ca63127ca804d5cef480c989989c486'
|
|
'7b3395c641f004100f673ca9fee9e01a'
|
|
'cab1ffd94e1e0887512f32b8f6a89887'
|
|
'f527318deb82cbf9fb3de566c4cb88a5'
|
|
'c65be577f5976b8d94ff005afd769675'
|
|
'c892e6a1d6940306da2efc77000f3565'
|
|
'a39a5c5a6b4956c083434b5facb91e64'
|
|
'f9142a79f2e40d07f697b80c3ab6244b'
|
|
'7b236f89484517a24cd277c86e329d85'
|
|
'd9cbc3b9740482206df160a3fc51d333'
|
|
'fe0ace74abc26a16828f099d2703df74'
|
|
'7af0ddaca259c0e90bf4aa9785a403c3'
|
|
'12943583d5dd29e5734dfadad42712a2'
|
|
'347a0405128299746c79f8f4257ee703'
|
|
'd45175d7a576f7908e6b5ea17890f092'
|
|
'512111f5b2aed403e4e7a35daeea783e'
|
|
'5f4c21e170eadd29f1711c69f22d6995'
|
|
'68f79a87785a0e0b26820254294e41e8'
|
|
'cc04805eb73090ad59b46420951e2d03'
|
|
'c110f3d89986d0716a986dadfab50ed0'
|
|
'b479fdc0f0dcba24fa5da65bb248d9f8'
|
|
'258ab0b9735f7338ea2f5bccd1fe9e86'
|
|
'ea4a58f1e834f1e686bc951a72d62b7b'
|
|
'a452994bcc9e3c149ac62f5b813a4b04'
|
|
'44a88442fecdd66aa4e27688694e90a5'
|
|
'9964ed78440540aea8075dd5ec9cd955'
|
|
'08089bd22ddc2a02d0705e525a7e3ce4'
|
|
'565c4bd7d2144c3025c6e308397887a5'
|
|
'3e02ba4020729d3b0547644e0eb2dc54'
|
|
'e023a7174d0afb164c804a04e6022668'
|
|
'5adc80b8d0ad4bf0d6002ea79302be4b'
|
|
'3accbfc1ad590a6081f2f6581869a202'
|
|
'b7a91b4c0f23d5513df928e479378c50'
|
|
'2c232c362370da05e2e3350a072f8940'
|
|
'8b48ea1894172524cd5d694e29ade465'
|
|
'5cfe92492dae4ce1db2452be6b099268'
|
|
'3a0039663d383de877dbd6e8195ef541'
|
|
'662ad0e593d163c3ec4a7c49acea4afb'
|
|
'1da0b621175e529b92d95019aa53d16e'
|
|
'ae58688613d4995fc2d22ebc18f7956d'
|
|
'bce5306add1535f73c18c11500b64135'
|
|
'74c333019b4fe6cef566a7550da2f8d9'
|
|
'601295f6174dab4fa72b0d01c475eb4b'
|
|
'fce283d1e71e2d39436f52dcf90d819a'
|
|
'09bebce9e2e91a5e616395b5f749bc68'
|
|
'4d344d72245342e924605d71c0634cd0'
|
|
'fd3d4570ac821c6a2dc8fba33fe6fc7b'
|
|
'cf3c7a447e0de8d159494e6b9628a77c'
|
|
'bc1faf397ea1f1df7da90d1aa461f863'
|
|
'720b71f31abca3b6bee49a4847928b4a'
|
|
'24381d471e6aece47d8103d60c9150a0'
|
|
'f860e74848e846355328c5f682012d20'
|
|
'cfb201c484f0ce4252e4d8916ed93525'
|
|
'30937e171178d3cb5c5d937cf2643a6e'
|
|
'18c6551fca608f364bd0c1a95e1be287'
|
|
'75b856df4e6215227bc81a892f48554a'
|
|
'4ccc85b898e67a9c28046be2a835d2ec'
|
|
'e45227d078f974f3582801bbadadce66'
|
|
'4e7b66d513a1bce054ba00fb2c732666'
|
|
'ad0d5baf4019b381acc50edb7e43b829'
|
|
'89aa84e229bf3351f8a399ef9d120955'
|
|
'cea0e9aa1ced20ec218d4a1cbf8871e7'
|
|
'b526024f9e67041878f7b239c331d91c'
|
|
'df2ab484ac3732ca672f6c1a0cad4076'
|
|
'517593a36f58c2b4de94b95220c66f2e'
|
|
'd817c638053d6e258a3d8ecb3cd2ed32'
|
|
'c502c99f906ac68ec548c135f2b6eb4c'
|
|
'd44b0d8336d5a3f59b21de6a5e7895cb'
|
|
'9872e26b032430c413d65d17a06a4fb8'
|
|
'93da36366a3677f245b8b0fb802ac9e6'
|
|
'c3e80ca60fdab092681862627d7b41a4'
|
|
'eafb4a3641d098a973f187d30d071805'
|
|
'7d14e31cb2dbb5f538829544e008fe91'
|
|
'2d2911783bf67c9265057ab29f75180c'
|
|
'fb16c4e3052c7663864f0f8fe957d52c'
|
|
'8e3a57aa5cf0cf977658a8de47fa373e')
|