# Maintainer: Andreas Grapentin # Contributor: André Silva # Contributor: Márcio Silva _pkgbase=icedove pkgbase=$_pkgbase-l10n _calbase=iceowl epoch=1 pkgver=52.2.0 pkgrel=1 _calver=5.4.1.1 arch=('any') pkgdesc="Language pack for ${_pkgbase^} and ${_calbase}." url="http://packages.debian.org/sid/$_pkgbase" license=('MPL' 'GPL') depends=("$_pkgbase=$epoch:$pkgver") makedepends=('unzip' 'zip' 'mozilla-searchplugins') _languages=( 'ar "Arabic"' 'ast "Asturian"' 'be "Belarusian"' 'bg "Bulgarian"' 'bn-BD "Bengali (Bangladesh)"' 'br "Breton"' 'ca "Catalan"' 'cs "Czech"' 'cy "Welsh"' 'da "Danish"' 'de "German"' 'dsb "Lower Sorbian"' 'el "Greek"' 'en-GB "English (British)"' 'en-US "English (US)"' 'es-AR "Spanish (Argentina)"' 'es-ES "Spanish (Spain)"' 'et "Estonian"' 'eu "Basque"' 'fi "Finnish"' 'fr "French"' 'fy-NL "Frisian"' 'ga-IE "Irish"' 'gd "Gaelic (Scotland)"' 'gl "Galician"' 'he "Hebrew"' 'hr "Croatian"' 'hsb "Upper Sorbian"' 'hu "Hungarian"' 'hy-AM "Armenian"' 'id "Indonesian"' 'is "Icelandic"' 'it "Italian"' 'ja "Japanese"' 'kab "Kabyle"' 'ko "Korean"' 'lt "Lithuanian"' 'nb-NO "Norwegian (Bokmål)"' 'nl "Dutch"' 'nn-NO "Norwegian (Nynorsk)"' 'pa-IN "Punjabi (India)"' 'pl "Polish"' 'pt-BR "Portuguese (Brazilian)"' 'pt-PT "Portuguese (Portugal)"' 'rm "Romansh"' 'ro "Romanian"' 'ru "Russian"' 'si "Sinhala"' 'sk "Slovak"' 'sl "Slovenian"' 'sq "Albanian"' 'sr "Serbian"' 'sv-SE "Swedish"' 'ta-LK "Tamil (Sri Lanka)"' 'tr "Turkish"' 'uk "Ukrainian"' 'vi "Vietnamese"' 'zh-CN "Chinese (Simplified)"' 'zh-TW "Chinese (Traditional)"' ) pkgname=() source=('brand.dtd' 'brand.properties' 'region.properties') _pkgurl=https://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/$pkgver/linux-i686/xpi _calurl=https://ftp.mozilla.org/pub/calendar/lightning/candidates/$_calver-candidates/build1/linux-i686 for _lang in "${_languages[@]}"; do _locale=${_lang%% *} _pkgname=$pkgbase-${_locale,,} pkgname+=($_pkgname) source+=("$pkgbase-$pkgver-$_locale.xpi::$_pkgurl/$_locale.xpi" "$_calbase-l10n-$_calver-$_locale.xpi::$_calurl/lightning-$_calver.$_locale.linux-i686.xpi") eval "package_$_pkgname() { _package $_lang }" done # Don't extract anything noextract=(${source[@]%%::*}) _package() { pkgdesc="$2 language pack for Icedove and Iceowl." replaces=(thunderbird-i18n-${1,,} $_pkgbase-l18n-${1,,}) conflicts=(thunderbird-i18n-${1,,} $_pkgbase-l18n-${1,,}) provides=(thunderbird-i18n-${1,,}) mkdir $1 unzip $_pkgbase-l10n-$pkgver-$1.xpi -d $1/$_pkgbase rm -v $_pkgbase-l10n-$pkgver-$1.xpi unzip $_calbase-l10n-$_calver-$1.xpi -d $1/$_calbase rm -v $_calbase-l10n-$_calver-$1.xpi install -vDm644 $srcdir/brand.dtd $1/$_pkgbase/chrome/$1/locale/$1/branding install -vDm644 $srcdir/brand.properties $1/$_pkgbase/chrome/$1/locale/$1/branding install -vDm644 $srcdir/region.properties $1/$_pkgbase/chrome/$1/locale/$1/messenger-region cp -R $1/$_calbase/chrome/calendar-$1 $1/$_pkgbase/chrome/ cp -R $1/$_calbase/chrome/lightning-$1 $1/$_pkgbase/chrome/ cat >> $1/$_pkgbase/chrome/de.manifest << EOF locale calendar de calendar-de/locale/de/calendar/ locale lightning de lightning-de/locale/de/lightning/ EOF sed -i -e 's/thunderbird/icedove/' $1/$_pkgbase/install.rdf rm -rv $1/$_pkgbase/chrome/$1/locale/$1/global-platform/{mac,win} rm -rv $1/$_pkgbase/chrome/$1/locale/$1/messenger/searchplugins cp -av /usr/lib/mozilla/searchplugins $1/$_pkgbase/chrome/$1/locale/$1/messenger cd $1/$_pkgbase zip -r langpack-$1@$_pkgbase.mozilla.org.xpi . mv -v langpack-$1@$_pkgbase.mozilla.org.xpi $srcdir cd ../.. rm -rv $1 install -vDm644 langpack-$1@$_pkgbase.mozilla.org.xpi \ "$pkgdir/usr/lib/$_pkgbase/extensions/langpack-$1@$_pkgbase.mozilla.org.xpi" } sha256sums=('49b419449431d8d64e20427a2e7105e3ac1ffc41e677a5f9a8eb276f5b82df4a' 'acc2cf95661be7cb8928fca89e08d0681685409ff2428e4e3d25baf1af427b38' 'e6edcc7c478d73ca5a17e4889acd302d55201ec5c29de545d3f44165201923db' '424ae192efaaa942346ef3d65fd119bbb94f9a30b584266bfb2a0b7e34c5b143' '56e67b0fce98b1c1d04559946903a743c07bc659738188c0232eec1f01418624' 'd58912dca0dcf5e9d4c9b057e8016ea671d5b13111456e7e727f69aa99a94834' 'bdbfb17cf494fc8b032912a0eaf7fb0fe2b9e1862d517ddc9d5cfa78b571244b' 'edb307b8958f14b099dc7d03c7abbcfb16a0a1bfc626c765319b08c57400d4c5' 'ea59086aa024ea35554c4b17387fe56287e403701642ac713a638e3f045a0ac5' '3d62c2ab75e5390603d0f72033cbc38a9777d0b4c0c7681a125886ff4fd9afcd' '28a5d28f522d9de7664ee03d402dd8371d1d3525ba7e07b8c42c3ae7946ff7d0' '3a511eb3f6d901271cd2f7af84a8df19d06f8aad126a5bcddd4defc82a23767f' 'c138b64965224206aa422dbdbc1bed19c1a6a1093a075f31bc94093b73c2c8fb' '3d29b1736d106c66742f65fb9230d7898cb3b12c1d8cf529ae42830fd595f31c' 'c266be0405476160d1c5c93df30a62bdfabd675a0bc5a2e98b4bad0523be7d33' '682cb5a232a63c02ff158954573dab18619d4af9897d080a121a9e30d8611c4c' '40e8238184f71d878da49604423bc6000b6b66ecd4c0783aaf8c8f531ca0e602' '9a5cef39952d952060f3df64703afc5f21bee94f3dabc50b2a5b01ad02baebb8' '1f42d4bb91895f01d5a09d6b22f452b933d0f71f00cd9d08ceb007b230be4b17' '741b41bf185a6abe7f3ef8f59828b40bc8e5404e50c4f52323bdb0db9b49c192' '562d09630f4a7fb5b18f3b4dd7199b4eb789620799d1d9c86562786e1d06324c' '0125524c59d726a24ff9ffa158f1adfaf04f9f3adb71f544cdabeea009a82660' '34388b199ae594ce9c87beaf7b59415da9e8c35644726ca0959a8f3cde1005c5' '92afd27c3b937122d4d3e81ffcb436fd2bbb7a4fdaeaea0a79974afd39638565' '1f2521de49bee8cb787e69ca3b87135d31f4e167920e5ddebb912090787ffe04' 'f411bf3db8123beaa72a83ef7e700c1881060bb5f307192d250b74a58327e712' 'a7ec131966f24abe29e9d9b919f7ab617690818aaced78e38f7d31ece65fb8e4' 'fd78564a39aa1e820c1dfa359d4ae051461c6b5f814e0a6d3c7d5c1601f681f3' '0119219219aa57a99ac0a52f516ed26d337ec9dc121dc60dd3e05a5b0df425cb' '42be03f5fc0f55300f3d60c6d98698af476d0a37dc66ef000a090539d29a6cea' '55f0ce5dcb0857e7c7113aa04f3385c3ba8992f34f586e2bef7b5903b6a32fd5' '6858fb6f5da51e02014dd2952e5ba6b10cd60d3e6e3ce699881ec16844059783' 'd2689517c1224f09cdf326c3139bcf43f7a24178f9ff72295c56c04ab8415919' 'a3edfb99fa29a576f4af13d57d24d79292b38c5318018bcd6d0c6374e2264dd9' 'edb6e9f77a346c045158c30b59286ddf1a6e0c8717a7157922e742ece5ac7994' '9919e006e770d92187e673945dba931a5c77c3c6c90e0b1b921768bf526da5d2' '4cd2c94b4fe1d0c70103fb40c8a3981e2f5bf505f9a4df838651f1e7b766e32c' 'fab144866c573324e8b6170486bd983e1a97c79087c42686fd0194a8673c9a02' '519189c8ec688e42725eda5523d4ce7e80414f24eb73f306967c3bf9b87157a5' '5191fae127cd551df43037bdd3433a14e3acb414d740c5449faec01dc105643c' 'fd4989a67292badaf665e4d97f5432b6da01e53e3ada4a7a71ed44e3f214725d' 'b4fc72d824cb2f568a46fd1b6ab9f936199555685b931efd08179a7c7b8222b9' '68eea9fea7de1e3d91634018175294724cd85144a204eedc548252da0fd2e0fc' 'e37fee38ee14ad875904c784e1d8930d3c7dd5b06dce0950eccf89ed8120080b' '825fa46991425b23962e76fae2985267fab7a18e83a5be8bec84c4c1bf844d24' 'ee3cfd21ffcf456db4dddd46100f2c4fc9b05ee07b289c21b1f8f5ebbe3979f5' 'ca7718ade8db58af9ade86341f62a4183dd613d6571c14bde7c085dc988804fc' 'a1f2d24f299f0fb9a36211556a2aac2fe83938966d6181897b7b615375472600' '87cb5ac138acede3f5c284308cd37de31d6bf17e02ae5929693e39eab2b5a179' 'bb432374ccc2a2d2d2fe2974c9f216f6c766c52b4849507302ad4c5a3f4e801d' '51725e57cdda831533146d7a8b3877dbc127ee8e68e3cd6c5e2cb19c109b1dc7' '607885c5f322a236b9c49a52f2ef5a425b27652688313f181e999d5737291183' 'ca0603e31f8d47a12781afbda4db7e3be1af26fae30b62128f4c4e77647fa8b5' '1687ca74aac1b3a6c18e7d81faf4586ce54b5bda52884523ee7063a6caef6537' 'd66e65bf591c6fef7ff80bbd87914fc40810a05f1ec612404a39464278aca23a' '2a5cc0f419bd5ce12c87e014a4e5320ee8d382e8433a578ec5c31b7edd686b1c' 'c8c3d8de01a718f5793f6a0cec7dc728736622a79976f61de33c2bdedf87b2ef' '1b9f58f1769d99bcd9c0d94b1d6666814ac3d45c621913b954c025ce68898dfd' 'bd788c5da5b871cc978b14110954e8f8673cb307e6cdd74d6bfaa4acaaf8eae1' 'f839e809a1000559aadb8415440a7ccfabcb22061e211c99b3f72891391116a3' '8583eb47833e4608af418e6649b17c5faecae950f72c6e16aed30445dc4931bb' 'ec00dd1926387dd993b4353e12e14c16eb7d65a14ec0ccf5ba13b075664d14e2' '27fa75c7b4417dcd24bdeeaff188bceec42fbb79be584784670dd19baae45da2' '5daa6be12a764c1066c2f44d850bc03a43651375e5d7ceb870414c88a8dd0db7' 'f4134b87247b2648c86da97081d5576a13a8321e73c0db39a936c49e6e0c683d' '0eaa42ef9166e6026b8cf5afc4817347158e56a4675a3f4c0154f089af14b1e1' '21af3c7d4416044f123b3c0adac869c40ca314e5ca2716785adf0e4a1beca361' 'e87b9d2c7bfa1cd67e7cede067477b7df53c77d3a303e2b238194091c63ac9ca' '41c2533f223e8d567d4cd7d3ed38132427f6d40df45d08698ab1e1783adde7f7' 'b9814223eadf18de6d89c197e0f1ba047c2da4574dfad7fde04c8b446f9c677b' '472357946d9c52789de830d354e3caed3a65d87d545720d2dee915775d93e371' 'ceaffda18829789fe23b7d9a93bd8e4c032289f38c6c26c603ba5266e11653f0' 'c7f38679d14dc0636e6fbd5fdfda39c6fa71078b5ceb6d861174b301d6fd3f19' '73c05dab4e8cbec972873f92a2342a63c1995055c3f729704e49414edc45972f' 'a2e1cd733ff3457b11179761e2bedf6a0f7578e4e1d8147d6ea6954b10181434' 'c927d1b68a82024d6e4cab14c56b87b9adf4a961181267983a5d9653f7647940' '3c6b015d1dbf044ee89d4cb772af564ae351cc8ce005d7d0c74eafee1da5b745' 'aa33839d0f42a614f3e8f23fa63e8bf1ce44bd9705c708ecc4b55395e4ca5f0f' '50aa578d64f64b9f58a58428a79348d1e2447f02ac1554ec73bf37c817a33987' 'c395b6e16088d300514ea1302945cc7f1f3639bce8e6b7d42046c0944ae3caeb' '558a2f3f9444c2e3ea39a425f12f23b417f7e9d017f58d0f612af7725b32812a' '057fb42f2b851534defb0c36084a937138dd59742181b4d0efa16dcd93c05a8b' '116388825a53e5513888b708f090f8f7c6ff44e08aa7bcc0f263c9f21a6f21d5' '49f3ac1e27563c477dd7ad42f778379aaf071e96cf872058fbf17ecceacb98e3' 'ec2e8107fe3a70aa6b5fc4891d9d56f7b60fb5916c70d04355bd3bc277128012' 'a7ed41198a0bba2adf92954ff178928961dc432597229e75d75daa5a9f706231' 'fd04f01e3ca1ad046a8569e803c238d8d4b29caf3d3a553927821e0ee30e55f8' 'da8365a51a18c6ace1ac5a58ba8fe5edb2d32a64118a1d938eb615a841655a75' '66c704998db0b71f106509abb618a94a7de91799d13271384e86e806d724f785' '4e247a47dd56d544e5240a5f792a38a8a44de633cc025e5af5e3bcffeca70132' '9a16c38d5c8947591ccf68438994307a1896315eaf2f32ebd601439bfe3287e3' '9a782add50588415e96aee0b17a75370383a64a2e84145730c0b3396f1aa1b73' '135801d0e3dbcd3c0e0e98bff3a8e217a91bdb81ee00725a6b5e48776a886941' 'bb9a6a73ceb544a35f6c0ebb98935623f0c43805e0365c4ce97db6aeaa25ef61' '5426695111f4c52cc27ad6f6616ebd149d2e55771dd2fb6ec8f1cc0d18e271da' '37f5b424f061c8b4eab8fa16f2f586e8522afc6eb9dd073b50264012e9608908' '98f96619de50f6de72c086541b6d4f08ba3b02396951b010f1e72bd6d9ccc62c' 'bfc5dd5e9689385875536db910bebd30d8a969abb55e6127434a0677214dc650' '70007f22a5353d3da8ac11b50b294ca01b266c25dd570da3135143d1ebe94fd2' 'c6e942a5c37dc99221d5689d7261b60bb8b5781b20f1b9d2b5877f5f9678fee7' 'bd7a8dc57248afab2bb52484bfe6c8b52473f7fcb42e43224b03bf274af8ad97' 'c9bd345ad38dafd2df16c02781de2fac5d56365042e55cff2f8fb31fc324b1c0' 'a2aaf0270e13dfe8621c2326503953d5239bff04747cd2c805935b09f97dfa00' '6a7fb8cf069e584e52f59565d65828dde8a0eed4d1607c1dec254a09fd10d9cf' 'bb9fca01eddd6a24410939d4de1e127f625c2cb019e75a9f9a4bf5467925f597' 'be0e3d1e7ecda68a188cf65a28c7bbd5395d42c46b0dab54b30a3e1f7cdbcbf7' '4936b8f053742529cf9c220b7e04c0b73cb40918b12eb36eb3e009f4f713673f' '5b0b4396a82c82024d1e99bc27634466c5435fe176c900256db94a682786f574' '161e1157311676c876856a3c51732c7fa0585a2c2191269b3e0201013bfce840' 'e35af1a970fca8f866c899697af58fd5ea45baf963d31e817f88e48333fcc52f' '1f6a086fc38a0ffb058cbecbd2e4ae5b75b0d3d4576cb94aa7acb99c6b4d123f' '39385fb150adb928c7cfd1179f89ddf2509ab7f61bd0c9390bd276212d99c1c4' 'fb6ae16e0d2a0f6942e717d65ea9d13ba7794078f6a76f1a7e8afdde7aa47d91' '7a506c7cba0b727e88c84281b41e934b02d6b2839cf24e88aff15aa1074eae5f' '000d51862041f24eaf447e486be5ebb1086d9ff268c9664312ca95a61e63ec93' '087e715b010a13cc69f984f70ed399f56ffb8307b80c6ffa4391f259891671eb' '190c249ff8214512eae70b2b5128b3ecd0f79e9ffb7124c798f9c916bcd1879e' 'f6739274b662ceaa55ffa1779a2ea45d5b8932ee43c60ae1dd69a33c43ea2071' 'c5cd1d5da237e0b6e00373c2e1cc44f5d8cce03ecc20bd348490da17a299b85a' '4c74964975ed98997c09c00597ff3093d6b904b373259cb7499fb51b1e45d7ec' '1bda41ccee2e6263f3951c7b18e78ec5788ddd6e0f147402b19dcc14e3154834')