summaryrefslogtreecommitdiff
path: root/libre/iceweasel-l10n/PKGBUILD
blob: 14e1afd6decab765323b019ceeb889e63017898d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
# Maintainer: André Silva <emulatorman@parabola.nu>
# Contributor: Márcio Silva <coadde@parabola.nu>
# Contributor: Luke Shumaker <lukeshu@sbcglobal.net>
# Contributor: fauno <fauno@kiwwwi.com.ar>
# Contributor: Figue <ffigue@gmail.com>

epoch=1
_pkgbase=iceweasel
pkgbase=$_pkgbase-l10n
_pkgver=52.0
pkgver=52.0.deb1
pkgrel=1
pkgdesc="Language pack for Debian ${_pkgbase^}."
arch=('any')
url="https://wiki.parabola.nu/$_pkgbase"
license=('MPL' 'GPL')
depends=("$_pkgbase=$epoch:$pkgver")
makedepends=('unzip' 'zip' 'mozilla-searchplugins')

_languages=(
  'ach    "Acholi"'
  'af     "Afrikaans"'
  'an     "Aragonese"'
  'ar     "Arabic"'
  'as     "Assamese"'
  'ast    "Asturian"'
  'az     "Azerbaijani"'
  'bg     "Bulgarian"'
  'bn-BD  "Bengali (Bangladesh)"'
  'bn-IN  "Bengali (India)"'
  'br     "Breton"'
  'bs     "Bosnian"'
  'ca     "Catalan"'
  'cak    "Maya Kaqchikel"'
  'cs     "Czech"'
  'cy     "Welsh"'
  'da     "Danish"'
  'de     "German"'
  'dsb    "Lower Sorbian"'
  '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"'
  'gn     "Guarani"'
  'gu-IN  "Gujarati (India)"'
  '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"'
  'lij    "Ligurian"'
  'lt     "Lithuanian"'
  'lv     "Latvian"'
  'mai    "Maithili"'
  'mk     "Macedonian"'
  'ml     "Malayalam"'
  'mr     "Marathi"'
  'ms     "Malay"'
  'nb-NO  "Norwegian (Bokmål)"'
  'nl     "Dutch"'
  'nn-NO  "Norwegian (Nynorsk)"'
  'or     "Oriya"'
  '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"'
  'son    "Songhai"'
  'sq     "Albanian"'
  'sr     "Serbian"'
  'sv-SE  "Swedish"'
  'ta     "Tamil"'
  'te     "Telugu"'
  'th     "Thai"'
  'tr     "Turkish"'
  'uk     "Ukrainian"'
  'uz     "Uzbek"'
  'vi     "Vietnamese"'
  'xh     "Xhosa"'
  'zh-CN  "Chinese (Simplified)"'
  'zh-TW  "Chinese (Traditional)"'
)

pkgname=()
source=('brand.dtd' 'brand.properties' 'region.properties')
_url=https://ftp.mozilla.org/pub/mozilla.org/firefox/releases/$_pkgver/linux-i686/xpi

for _lang in "${_languages[@]}"; do
  _locale=${_lang%% *}
  _pkgname=$pkgbase-${_locale,,}

  pkgname+=($_pkgname)
  source+=("$pkgbase-$_pkgver-$_locale.xpi::$_url/$_locale.xpi")
  eval "package_$_pkgname() {
    _package $_lang
  }"
done

# Don't extract anything
noextract=(${source[@]%%::*})

_package() {
  pkgdesc="$2 language pack for Debian Iceweasel."
  replaces=(iceweasel-i18n-${1,,} iceweasel-libre-l10n-${1,,} firefox-i18n-${1,,})
  conflicts=(iceweasel-i18n-${1,,} iceweasel-libre-l10n-${1,,})

  unzip iceweasel-l10n-$_pkgver-$1.xpi -d $1
  rm -v iceweasel-l10n-$_pkgver-$1.xpi
  sed -i 's|Firefox|Iceweasel|g' $(grep -rlI 'Firefox' $1)
  install -vDm644 $srcdir/brand.dtd $1/browser/chrome/$1/locale/branding
  install -vDm644 $srcdir/brand.properties $1/browser/chrome/$1/locale/branding
  install -vDm644 $srcdir/region.properties $1/browser/chrome/$1/locale/browser-region
  sed -i -e 's/firefox/iceweasel/' $1/install.rdf
  sed -i 's|Iceweasel|Firefox|' $1/chrome/$1/locale/$1/global/aboutRights.dtd
  rm -rv $1/chrome/$1/locale/$1/global-platform/{mac,win}
  rm -rv $1/browser/chrome/$1/locale/browser/searchplugins
  cp -av /usr/lib/mozilla/searchplugins  $1/browser/chrome/$1/locale/browser

  cd $1
  zip -r langpack-$1@iceweasel.mozilla.org.xpi .
  mv -v langpack-$1@iceweasel.mozilla.org.xpi $srcdir
  cd ..
  rm -rv $1

  install -vDm644 langpack-$1@iceweasel.mozilla.org.xpi \
    "$pkgdir/usr/lib/iceweasel/browser/extensions/langpack-$1@iceweasel.mozilla.org.xpi"
}

sha256sums=('d319f07f17268240cdf0c5f996952f09fbfbdfb2905f9d7b1741a7a42b4d8085'
            '754ea5ea2fe184d3bc1b1bb60d4caf72cdaca5e4d8f16065b22b988b1ede9ad1'
            '81d1f98843f29a81c10a9a96655505c72ee34acee45225dcd307ae9a123e63d9'
            '3cbbcf4422b7789f28e3086ef788fc1a44db2f6a9ce4a5629a3d4c8287a3dcad'
            'fcf4684463e6476dd26686d7b7c6196fd1310a0df317fbcc88f9e9147d947864'
            '78436260d053e966c9b663d26c72122bace217a56a15d181f551d45add1601d5'
            '95fa9333298e64c9c9943bcc455126a483d3904b5ade6810f2deed091234ed76'
            'b66741a77e99c5021a7fa4e0e780223829ae53829a0947493f9fbbbf7f5319c2'
            '5ad2fbddf728a165e4b7434aa544bbc0b8e718d29fd813ec432573d2dd78e317'
            '811b652d13fea215dc1c94e74002a0fa1655a257c2dad122a47ce89eaa6c40bc'
            '709755aa3a5b100e5cc1acd2a7feb18f8e0a6f8e2b632b5b3c0f90b0ad781c2e'
            '433d795e02809300d24d5b391209457e96eaa9d636d63c03f22b38a706a7a382'
            'e5a2fa91eabece076fb0963ca6b4361c05ffa4b15dfd1763f6ba524c4ec01059'
            'b72bea1dcddc797e0c45e1dfa6b0a0fd77d845ac61afe14dd47d76dee4b01e7f'
            'ff83002b983a02a2a5b1775034124e8b1e7b16e6e944f571ea9c8042b19a24e7'
            '73cb168de30734c68690e3ed12391342c5d4a7d5360d714a863b258ad06f8421'
            '0bf0a8160f8276a529707c0114462a769e375d4751bd7dcac21947651d0a802c'
            '31f5687aa5084d04c46790654f23044569ffd19996f41d27e2bab464083fb3dc'
            'a4db85bb05fc0b974ce735987b586cb90c42f1e1b4b02126d71f5b48341799e7'
            'b7f06549c9ac38c4c27832cd5697f7c1303aef19e893b4a05c88c3e6efe58cb3'
            '94d58d7e8173e55614f2fd203b02309000c21b121a9d114379c237b6a06e2329'
            '2ff9d70cc9265842ef3c1867a6b5b9d082717607eff28c0968cd86741ff1037f'
            'feabe455b70b2a3ac41da4f4149bc8eb49b0b0789ce22366a60742c26dd920ef'
            '7fb581a3cbef3940067bd09edc0bc18c14a9e48ceeeea915982e3753d20ef771'
            '6bf4ffa1c7240975feaa8a71abf6a85d62386281e5ef66ee0feb7f6803685686'
            'c776830c4c4b30ff789d2c86134194ccf6924e3f7695bb98618ab302c2837cc0'
            '48a4bd97e2aaee0315e5243c56fb7c3a491c22ab25a79dc47e59ac3f0523525c'
            '1b369f6fb6bc6b503e1fcbf83a2a8f5e6e4d0f424996fe3dea2b99228890f196'
            'fa98cce058736cddb439aeb28bf7324c03366089503d7075fa4b627b028f54ca'
            'c10eb860a82220b37e656a7a4c51115c5e30956ee838c1aee9b75c8e0eaa1482'
            '7f2f4a5f20445a84c1e81657e6912ea10fbc82903c3e62f9e4f3ed6a6adc38a4'
            'cb482735ccbfdb1c882f8de5b46fce92254e1873dbb38959220e646381130549'
            '4f48ed709c82ad98ea5c0e7d3620eb5376a07d5ca7d94e9fee7c96ff7ed3040b'
            'c4f5f351abb7ea25109ef0d60d9c3cca0d22884263d2b44f932e91c40dc6a2d9'
            '20646e6250569d948e84622c7c9023dba780f3c69d7f1fc109b96feb450a9761'
            'fe61890275424ed0837e3c8f0541005281b66db64695b6c58bb88c413eca9ce6'
            'db6aa16a44912bcfa3412db2090f501197286231863b76572ec27ac5dbce68fb'
            '684a72d30d1d58f80bbfa40516ec125badedf85793fbb37ed51ee5c26cbf76f4'
            '71881534ee499dd440c271edb3bd9f1e508ee3b5d24d24b1bb71ea9f5b284c43'
            '43ef6180ba6b13f29406231f820f13dc6044138bc9308419b981838fc12cf244'
            '20c34d2d25a8e24bafe71313870f56ce35827e9b17d3fc57a9ece6eb7efc5778'
            '92fe2775b244c1e02af6e65b26b0081538366c019bc6cae4be0b0cd83de002dd'
            '3c796b5a1fe2fddb8d50f808329977bb93363dfff6935b26e271c9b8aed23bf8'
            '8add42335e4ba75e98b6aa228f88d41a0dd803c75621666b12f43f89a5b986cb'
            '60b5548a5c352ff9fb9d6854d28d857415657c3d5a0c7439255a466bfdd560b2'
            '82ac035db1fab91141971f6d02df5d895959164489a666fabc0d248323c25cd2'
            '21302994edf657035817e7e47c29011a20d06578283bdd0050b3c2cc50d42c6f'
            '0c282eae390a992f1e94a96cb74cab3b9692f91d8fcf1d03fbc5e3fa2babd545'
            'a00004dda0e17fe82535e44ec498be8e5074b019a0f72896c931f0521957d8b0'
            '144f666efa1367714acc058781cb104af51957375ea2a11f536d8d74007e6753'
            '8585ce8f41462998863d1fa486def6fd8875d64f4335abedd8f2afb85602969a'
            '51936f803cdfa6c47353d63b053a59d2e9ce67fbce3d2a59c063a3465e956d3f'
            '3ed27bb2ce0547f6c7c8f83e1be7cb83e054406e042c33ef607df6d5a364f0bf'
            'c0a8d9abea5d22b2f3dc613a3bd07a6b007a795c938dbce6caa3efd14cf94f43'
            'c3a6d1e0ef0649ca5c653dbba85bdfca1a2cbbe02f09de86ffd91fce371b28ab'
            '59e9bc347be988faf6828ecacb8176f625e4e55230fcfcb168246ae69495d80c'
            '8832e70d6527c02516b6ec7f218fa257088c711a8ced0c82b8fd29e499e35b73'
            '199fe4661af40d7a45a7aec4d9bafa38d42dc5ef54bf0a74bd94cd45f47ecc86'
            'd517cb0b639246b8e5de0acc8d67c98e0cb13bbff065241b750bee101180faff'
            '69ded775bde17871ceda765367a117a83507b96766aca449aa53545b76725143'
            '98857fa0d0ee508c8f3b1671ab28a9cecfccb74d9e29f464debc96ef5b141120'
            '202200292cfeda1f2bb3707d0571173fc53508da23ec7dd264376dbcef21ffc1'
            '5fce2e7f647b391becd55c2cb2dbc9ff3fe0ae8d9fb691bd225f29ee123a88b1'
            '7629049a8a35248b3b97d3cec97f359e0547aac09f1f95699840c621a37866a8'
            'c4b752feac174081c9faf05c49b504a1b4040118d8b162f8975285d950be3903'
            '560cfb8a281d6ae1bb6f21e57196604d20e95206395eba74d7cb09ac5ec39e9e'
            'db5f957188bee2039f9041c57c5183474f9863490395002d3d2be5b595b81253'
            'a943ce941a1d000d80b7fad146070e754a5000a311fd7359fdd38bfe9e155c89'
            '5f822cf59bbfc93c3c3b3525d19a316b062248ad61f03da3f9c34d3e8600dee7'
            'd27c4526f818c18f54d79626b456ca1a051a94a0f57cd3ed16600f39ecc3c318'
            '65ab415fb4bc953a3ef4e6647daed7548b5d35c8f98cc1f0da38c44eb9009ca5'
            '73d3309d4ab26bd0c3f50985a367aabd90e573d883ebdac9badd37fbeeeb3eee'
            '0c0c043cd190983b6729afa847c229f6a83467335e09653a6304fbeaa167bdb9'
            'a88faf248640285f31f9d6734dd1c1af6536a9780680c6eb6e3f8c12c11e3cc4'
            '6fcc516b09f2cca47ac5dd3108bd819357fdb9555c94a74f00f2e3b268418f92'
            'ca8e11d3d1c14ebed7e328bdb593765b6f71140d9cb173fd11e76520dd52b89a'
            'fe947ccd6a25968b1422974b16892f4ddcb208769294c8634cb55adf491cf6cd'
            '24fbfb12d60604640533ac0073c36a1f956da2a1ae9853bc8ce88544e16e0b75'
            'b67823f59a936ffa80ad8d99ebc583844ab888f18cfb968ea4d22cc1c49a16d6'
            'ac1137b10f8280a73eea91be59fd8176b9be9d8bf18dffb6887be0330812f898'
            '997f428456718f37919c2dd5a32bece00e9ac4d8bce29a07d5c6e1c0d5baa6fe'
            '09cda0230d06867a0332e12d0cf7e1dded0412aaca5493d1f671c25f917f31d5'
            '8eac60c6ffed27d9ef9335722b105737a6848a953852bd64a77d06bcda810d79'
            '0af427eb3a234fc167b34c316426da0a0463670cc7295a4b4e8619e28b593dbf'
            '2cb0ae512a2f1f730be13a7bd6856c0c8d2113353281243a8489455a45ac8e56'
            '50b719beae4712e1981fe5fd1f8cd15df81217d6a7036e20cebd8435ebc3c02b'
            '83e43d7f26727940de5e3ae400eb4a2a8f425a24a183b0c0d952208cba172468'
            '946b81ca738ca75b2d2407842c8d969e85832e30ce8280c4ef485b334cca7949'
            '00ffdeb1d95c1bbcead080c6126c2a75155c4ffc3df0039ddd1b536eb4918aef'
            'f3d57861c64f59c4250ff5450b9386e8ef96676783aa9828f688cc261eb864a6'
            '9c7347fd70d7b554670c2408dd1509cbe30a7b6a11ae4597278b6bf9cdeedc23'
            '8ade0de0ee62fc690328b56866ec33137a77989d588071bb453bce5e6a938379')