mirror of
https://gitdl.cn/https://github.com/chakralinux/gtk.git
synced 2025-01-27 12:42:13 +08:00
fix wrongly removed
This commit is contained in:
parent
31012358d7
commit
4164e75d96
231
firefox-i18n/PKGBUILD
Normal file
231
firefox-i18n/PKGBUILD
Normal file
@ -0,0 +1,231 @@
|
||||
pkgname=firefox-i18n
|
||||
pkgver=35.0.1
|
||||
pkgrel=1
|
||||
pkgdesc="Language pack for Firefox"
|
||||
arch=('any')
|
||||
url="http://www.mozilla.com/"
|
||||
license=('MPL' 'GPL')
|
||||
depends=("firefox-kde=$pkgver")
|
||||
makedepends=('zip' 'unzip')
|
||||
|
||||
_languages=(
|
||||
'ach "Acholi"'
|
||||
'af "Afrikaans"'
|
||||
'an "Aragonese"'
|
||||
'ar "Arabic"'
|
||||
'as "Assamese"'
|
||||
'ast "Asturian"'
|
||||
'be "Belarusian"'
|
||||
'bg "Bulgarian"'
|
||||
'bn-BD "Bengali (Bangladesh)"'
|
||||
'bn-IN "Bengali (India)"'
|
||||
'br "Breton"'
|
||||
'bs "Bosnian"'
|
||||
'ca "Catalan"'
|
||||
'cs "Czech"'
|
||||
'cy "Welsh"'
|
||||
'da "Danish"'
|
||||
'de "German"'
|
||||
'dsb "Dolnoserbski"'
|
||||
'el "Greek"'
|
||||
'en-GB "English (British)"'
|
||||
'en-US "English (US)"'
|
||||
'en-ZA "English (South African)"'
|
||||
'eo "Esperanto"'
|
||||
'es-AR "Spanish (Argentina)"'
|
||||
'es-CL "Spanish (Chile)"'
|
||||
'es-ES "Spanish (Spain)"'
|
||||
'es-MX "Spanish (Mexico)"'
|
||||
'et "Estonian"'
|
||||
'eu "Basque"'
|
||||
'fa "Persian"'
|
||||
'ff "Fulah"'
|
||||
'fi "Finnish"'
|
||||
'fr "French"'
|
||||
'fy-NL "Frisian"'
|
||||
'ga-IE "Irish"'
|
||||
'gd "Gaelic (Scotland)"'
|
||||
'gl "Galician"'
|
||||
'gu-IN "Gujarati"'
|
||||
'he "Hebrew"'
|
||||
'hi-IN "Hindi (India)"'
|
||||
'hr "Croatian"'
|
||||
'hsb "Upper Sorbian"'
|
||||
'hu "Hungarian"'
|
||||
'hy-AM "Armenian"'
|
||||
'id "Indonesian"'
|
||||
'is "Icelandic"'
|
||||
'it "Italian"'
|
||||
'ja "Japanese"'
|
||||
'kk "Kazakh"'
|
||||
'km "Khmer"'
|
||||
'kn "Kannada"'
|
||||
'ko "Korean"'
|
||||
# 'ku "Kurdish"'
|
||||
'lij "Ligurian"'
|
||||
'lt "Lithuanian"'
|
||||
'lv "Latvian"'
|
||||
'mai "Maithili"'
|
||||
'mk "Macedonian"'
|
||||
'ml "Malayalam"'
|
||||
'mr "Marathi"'
|
||||
'ms "Bahasa Melayu"'
|
||||
'nb-NO "Norwegian (Bokm疇l)"'
|
||||
'nl "Dutch"'
|
||||
'nn-NO "Norwegian (Nynorsk)"'
|
||||
'or "Oriya"'
|
||||
'pa-IN "Punjabi"'
|
||||
'pl "Polish"'
|
||||
'pt-BR "Portuguese (Brazilian)"'
|
||||
'pt-PT "Portuguese (Portugal)"'
|
||||
'rm "Romansh"'
|
||||
'ro "Romanian"'
|
||||
'ru "Russian"'
|
||||
'si "Sinhala"'
|
||||
'sk "Slovak"'
|
||||
'sl "Slovenian"'
|
||||
'son "Songhay"'
|
||||
'sq "Albanian"'
|
||||
'sr "Serbian"'
|
||||
'sv-SE "Swedish"'
|
||||
'ta "Tamil"'
|
||||
'te "Telugu"'
|
||||
'th "Thai"'
|
||||
'tr "Turkish"'
|
||||
'uk "Ukrainian"'
|
||||
'vi "Vietnamese"'
|
||||
'xh "Xhosa"'
|
||||
'zh-CN "Chinese (Simplified)"'
|
||||
'zh-TW "Chinese (Traditional)"'
|
||||
# 'zu "isiZulu"'
|
||||
)
|
||||
|
||||
pkgname=('firefox-i18n')
|
||||
source=()
|
||||
_url=ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/${pkgver}/linux-x86_64/xpi
|
||||
|
||||
for _lang in "${_languages[@]}"; do
|
||||
_locale=${_lang%% *}
|
||||
_pkgname=firefox-i18n-${_locale,,}
|
||||
|
||||
pkgname+=($_pkgname)
|
||||
source+=("firefox-i18n-$pkgver-$_locale.xpi::$_url/$_locale.xpi")
|
||||
eval "package_$_pkgname() {
|
||||
_package $_lang
|
||||
}"
|
||||
done
|
||||
|
||||
# Don't extract anything
|
||||
noextract=(${source[@]%%::*})
|
||||
|
||||
package_firefox-i18n() {
|
||||
pkgdesc="Transition package to split build"
|
||||
depends=("firefox-kde=${pkgver}" "firefox-langpack=${pkgver}")
|
||||
}
|
||||
|
||||
_package() {
|
||||
pkgdesc="$2 language pack for Firefox"
|
||||
provides=("firefox-langpack=${pkgver}")
|
||||
conflicts=("firefox-i18n<31.0")
|
||||
install -Dm644 firefox-i18n-$pkgver-$1.xpi \
|
||||
"$pkgdir/usr/lib/firefox/browser/extensions/langpack-$1@firefox.mozilla.org.xpi"
|
||||
|
||||
# Fix a few broken langpacks
|
||||
# https://bugzilla.mozilla.org/show_bug.cgi?id=832060
|
||||
if in_array $1 bg br; then
|
||||
pushd "$pkgdir/usr/lib/firefox/browser/extensions" >/dev/null
|
||||
unzip langpack-$1@firefox.mozilla.org.xpi install.rdf >/dev/null
|
||||
sed -i '/./,$!d' install.rdf
|
||||
zip -u langpack-$1@firefox.mozilla.org.xpi install.rdf >/dev/null
|
||||
rm install.rdf
|
||||
popd >/dev/null
|
||||
fi
|
||||
}
|
||||
sha256sums=('d9dbf5ead3dec0006ff8966a4a47969a2a0da670645e3dad149ddbf1cbef9c06'
|
||||
'e0a87e467b18764a3d501c262134888eecc6f788df9ed358f62b365eef2223ad'
|
||||
'4bc05e8554fd7cca81f75de2fbfc876bb6b89567327e4fd1f2359cea8f8be4c0'
|
||||
'a4636af3cbd8c0a381ead9dfc562fd695c82babcba09a98d3896d74d64884fc5'
|
||||
'3ae6b7ce09a61a82c6eaa521df33c0046d07e7318545b28f55b4593df9f9aae4'
|
||||
'1485cae029a562cd210f3a02008cf120f5b21c35127733f3613acd5505598cb0'
|
||||
'4dbffa584ecfb8b277df369813773f4f7951e8afce203a79e124a3bb586f70f4'
|
||||
'a1679e61947466ff8eb8bc51ad452f4b24dab930b3062eb057370efaa942b2fb'
|
||||
'ff3e955065015bcf49e95981b327770e8e94c8fe56e14d2b271e3640683040b1'
|
||||
'342bbd4a0928e84bb36ffa7a4b226eac561fa91183a5c3d6c2aa29f7a9a93b8d'
|
||||
'f69f67cec41e1b6396850dd643ad3d59943d1c396cb85f07b1bee19898439969'
|
||||
'ade9581c8fb5e0e6043cc10dfff921550085c7117090f60beee7d18136770340'
|
||||
'82bf8f5cd05ac3e3f559459e73e11a9e3952960e6b4e715594c08dd20efc20c0'
|
||||
'1e9c3b4b2228d9f64e5e6d3f02d065860fd59588c1459695e145a50e730128e3'
|
||||
'38e7404220165ef52b178a3a60f8c7fb1a44b99da354e093d885bbd5d9560471'
|
||||
'9b42f17243f7282552d03e988dd7e8316a6b0c3e96f72783d890f5021c1e011d'
|
||||
'192b748a1a94d1486a1ae3682b5f02555f284533213da7864aeda71fb9fa17fe'
|
||||
'154a03a4c334ff4074aa54faf0b29b1ac904f230414ee31d69a4282e46e2c8e9'
|
||||
'a440ff219110808a2f6671dc7775cce1e59cdef58ae19227dbda4332edb1abf8'
|
||||
'01d997105eb5269c93241f5075288e5cfaaecdece19b1d6183319cc9d9b8a16a'
|
||||
'48cd50e9a1a75996d0d3c9fc976dec6f658416c554ea880e161edc55e6cf35a0'
|
||||
'657d972e8d997ef5a17d8a04e2186cbf0ca175769fe09bda246a824ac5231b6e'
|
||||
'e01a908ab7aa725a4888472c6eb68d505b53da176da0f15181f747055e6eff28'
|
||||
'a2c8903bf015e940f2c031917f15a6477f6374ef034f607f096174912c575f8e'
|
||||
'811468f864a2dcd848128f3777c860d72c6e1ad455bbe091d4ed9c80318beb6a'
|
||||
'7b9724a4787b38e7a304e111030faeadd033af76b02a70f9ead8cdd9d9d169f6'
|
||||
'283753d42e623322d41c6282b7ad1e21c1a058bc7e47268ee584712f58cfd050'
|
||||
'8c073b6bc73584fc3992d29d71c6fba99fa0726ca10bdc4865469511a3d94aba'
|
||||
'6a2c6b097d259cedf36c8eead64a16efcab4c94cc5631fab1a630a9f038990c5'
|
||||
'8cf1c1bfa9bdf231c23c2eb50a1191e450f902a0039e54dcdee4ca6b6e1bedcd'
|
||||
'930babb4eead09c6711f637593b9283d517bb46846eb89b7f0bd3a25a1ad06df'
|
||||
'c7cdfe6499b3f8a9c9dc6dbf4a769f45329875f98769e17dd1445b38b4006270'
|
||||
'a00359f1c6c08bcf7c4bcab115050b0dc7db05defbe04a4d72064df76c8dc309'
|
||||
'96194252a7b405040ae44e33fd4e543e8c6db84251bc2f8e12500be8a2d91158'
|
||||
'0f213c0698d0ecaf993b0311847aed14a416c73812d013e3aff5b10ad0e34117'
|
||||
'f65453c3c6f1e018e2672e17e4423e62ff19f75ab04b827e442fe52b0e5baa24'
|
||||
'9b0c022fabc8b3e75213357a1def27b17e92885fba02f5cefca882dcea840aca'
|
||||
'706bbc8cc3afc8121d9d0c569591c10dc324a171d24cdab1ac90d05d07950dc5'
|
||||
'2b399543add5f0bf7fc2e4b8178d22a657ca87a4501019f265e5f1bd6cba7581'
|
||||
'cf9f87375a9748863c8caf3c3f72e6170453900a0af77591e7b0643cdce7cb9e'
|
||||
'c6b5c49cc522428db302be89b9879b6ae232e462b200018379d00f210c0c4555'
|
||||
'877a94ecdff19c896c09ded3a469380054e66f297503fb15aefec4615a170d0c'
|
||||
'f8db2c2669573769d941f5fc82e7da426ff51acb57f832345de676372c2947cf'
|
||||
'bc4454b615c4c48a1650c3d80559e9700593b5e55f5af56424d45ff7f7542d4b'
|
||||
'0ce152d0cb3bd31daa8d3ec5a8b542823471308282b0fe961f694ce8041f5bc7'
|
||||
'48f75d226f121bda3dbcdbcc23ed202747d8d1ae34ac1f0f8fee1dc790c90073'
|
||||
'22fc98d392025b94e8db4478452737618b6c006a571720a43e0d952975410c90'
|
||||
'da05a7943f01e9adde81246aacae2b28d374923c96b23739aab5b29f058191d1'
|
||||
'29876cb86604acb617e9e41a8003f10cc157fc260ec46b4ccf2199bedcd74c52'
|
||||
'da822e7784490c38011eb2520c7bdb0d5cd441634970246a00bd4913d9b31b24'
|
||||
'e95888cc580a778c25b7e863e82a18d729f675d237760567cd201cfdbef8678c'
|
||||
'831a771ab86e9be7551d820aa01887536f5f92111328e80206be96d51935978a'
|
||||
'93f8955d4ded7145ee1266a1209bd5851de67e1f70d88198e0ae921feacffb14'
|
||||
'0baa3311b8f8efa8afa69949d0748cb55cb79bdd7a7774525cf3dc035e0d9995'
|
||||
'6957ba9d91c06c893272d0f3c62356e89a22267d4a6d31756d62540750053bf1'
|
||||
'7d75fdc0465511a3d88fe208a2e49f89f70bbbde08bc2f4d60884cb4a479b73d'
|
||||
'06e0f82214c1257b16e1d8f489b10dfdd0d00375c38518f21ad04b1c9b0607ba'
|
||||
'69886378115fc25cfb9bc18aea86930cfdece3b4e546a94e9b7c80d7bb1c0f04'
|
||||
'cfcf53b1cbe2dc400d85c32008beef18d621c4b70810244bf400921d58e9c222'
|
||||
'41c8ee0017fb9f8dfdca6a5cae00e9c45a505d73b4b0024408dcec43ddc5f5c7'
|
||||
'f325895a6309c0a56767afcd49e00d83b415f1486dba6103094c70ea2e85467d'
|
||||
'33b285348d769f3a87823977b895bfeec5944a5e53716c3e85ec41d9710fdf3b'
|
||||
'3258a05da6eccca1b45a0dc3414526ccb7c20fe921b3b8a5a1f439fda4f04783'
|
||||
'0c8ed3ed6794548f005feed61c89ade7e1091e911d2247a4e4d19d1bd1456bbb'
|
||||
'4a90d44ee3a36218d84a444130ed20e70ba464bf910a61d513260bcafc646b6a'
|
||||
'eb6a5df85d4fc35f473a9112015263b37cb5a0a1a8e2cf687553a3a8cc22bbdb'
|
||||
'd5121051490a975288337152766a67269e93da8c09a89de94457c6937c690163'
|
||||
'51f87664079b4957a43b5d5d0e2bb7c18e26135b68b8089441e3b378f915cdf6'
|
||||
'd65a5db1cb63c0830bb8145d40720b4aa2771f1c807eb79c5252a573b1c8b90d'
|
||||
'8dcd52f3b713e300158642b43898cf40c87b43eafc8fc94fa5d14ed9761294dd'
|
||||
'fdc4714cca73f29822c8eadbae9e678a899c8b51320010f25f57f3171ecd7ed4'
|
||||
'6ea506e9ebc503937cd0973f5d40cacd032bc8568358e58c699b9d6210aa727d'
|
||||
'0672bc0e0e954c09ec3d32542fb259acdae6c74a56cada5f11c350746c7d4963'
|
||||
'6bc5ebc2e1380e0fbe9324e12d83bab1d434debecad8eb35ffbad7b144d0c4b9'
|
||||
'af31838433f1014688f3ef5cad12eb7e72ec7e447371ac83009c92f07993e3db'
|
||||
'57db8a4275d2756154aa3cb9f3670289fa722b878fde9d47ef699f2d79c0da81'
|
||||
'ed81028559130b3568d43e62b7b8ac4a7ab6fd184eaeea405c562173caca1042'
|
||||
'733a237ea119b2d5cb61cb4c990f916dfefd20e9b505ff3af26789e566b44c78'
|
||||
'af4f175587907db83dea096efd951df36ddd39bc342d8d32c00d2599ff5f3259'
|
||||
'a3ae2b0176b28b2a9cc0d249b7683ba83844f9028ac14625a71fddc13a986d67'
|
||||
'7e714dea80971f098059c7065195e0b57c7292aa44bf203a54559498c373d7e8'
|
||||
'abf43eab83cb25494502ac5536852a74ae611f49f3ba2efaf80e299e4535b66e'
|
||||
'f91edf970e5fde66fa513913872cb059c733f8b1e62de801a710fd39d2245b3a'
|
||||
'2faa78e43f127cece8706c76c0652155a7d00241720e03101ba328f84ea21cdc'
|
||||
'abf165e8810d800822b786c992578f252c856fc8323b7da923ff239bad3e2b7d'
|
||||
'c1a97ea8ff2c5786b41957d25db80f9d6097f794d1d2c1cb566288e9eb0c52fb'
|
||||
'5a36106a74d22221230a72ef91fa61221bd40257d77a0c9be0897ec9e93f9157')
|
||||
|
Loading…
Reference in New Issue
Block a user