summaryrefslogtreecommitdiff
path: root/libre/iceweasel-l10n/PKGBUILD
blob: c308ce6618e577a9be761a38c7b98e51945736c0 (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
250
251
252
253
# 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>

_debver=43.0
_debrel=deb1
epoch=1
_pkgbase=iceweasel
pkgbase=$_pkgbase-l10n
pkgver=$_debver.$_debrel
pkgrel=1
pkgdesc="Language pack for Debian ${_pkgbase^}."
arch=('any')
url="http://packages.debian.org/experimental/$_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"'
  '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    "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"'
  '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=('region.properties')
_url=http://ftp.debian.org/debian/pool/main/${_pkgbase::1}/$_pkgbase

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

  pkgname+=($_pkgname)
  source+=("$_url/$pkgbase-${_locale,,}_$_debver-${_debrel#deb}_all.deb")
  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,,})

  bsdtar xf $pkgbase-${1,,}_$_debver-${_debrel#deb}_all.deb
  bsdtar xf data.tar.xz

  mv -v usr/lib/iceweasel/browser/extensions/langpack-$1@iceweasel.mozilla.org.xpi .
  rm -rv {control.tar.gz,data.tar.xz,debian-binary,usr}
  rm -v $pkgbase-${1,,}_$_debver-${_debrel#deb}_all.deb

  unzip langpack-$1@iceweasel.mozilla.org.xpi -d $1
  rm -v langpack-$1@iceweasel.mozilla.org.xpi
  install -vDm644 $srcdir/region.properties $1/browser/chrome/$1/locale/browser-region
  sed -i 's|Firefox|Iceweasel|
         ' $1/browser/chrome/$1/locale/browser/devtools/sourceeditor.properties \
           $1/browser/chrome/$1/locale/browser/devtools/toolbox.dtd \
           $1/browser/chrome/$1/locale/browser/devtools/webide.dtd \
           $1/browser/chrome/$1/locale/browser/devtools/webide.properties
  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=('81d1f98843f29a81c10a9a96655505c72ee34acee45225dcd307ae9a123e63d9'
            'bef2cc4c39a86ce380ab9358e81f174aa4eb645ddb7c58eb67ea34ba158e17e0'
            '35847370d75114fc2fd9276e6d644fcd5827c508b21b639040fe2af231ccf7b2'
            '08ca2d92783321966007b60417ab93386f783f385da2663b264c1be512f7d00e'
            '26286f26eb67d2f8a1ccef6a156ccbcc605d62b56becd1c0a79a831a781c40d9'
            '1fee8ecf5d8e720399ad81f77ec01e3418c1b49a85c9bb249d662c2f1af00948'
            '04014bca9bbd075c7600c49f34f4ab6ba0d0ab8ca6df082f6eb4733ca4651cbb'
            '35370307c839d5e1c4519adb8592c8aad72f059c440fc38b51180a22f13065bf'
            '275f5ec4ddcac4849994d9f4ba203fd8d364e8570c6e10c4206fab6db1324d0a'
            'b7796168c5c3d30562e3c3df87d25bbb7d5698f14f374a833cbc6dcefbf48f3a'
            '558ea7b5609287bc53df2f1722c59501c8efdb01a9e05e889b233289abea368c'
            'a1f865b9808d732ccfc18a2c02fe946729c5994abbb8c27ddad8c8233479ff30'
            '53bd520f34dce41df537df8fb0208199c03c3047a07738d814b3212b684ea411'
            'c8bec57a1d1a63423150884b287e5d1691d5d974fbfd94e93347151e58910f10'
            'fc422caeb36cbff9afa744aa9a2ed2f1eea804638d6d4a76beb9e74f19c2da71'
            '059e0031e094220966dda74547a2ed6f86c5eddefd07c689c19689e4c193e839'
            'e3adad368acc4b648e14f7045d0fc25af74cefc310a38dcdef70283213c1bfc0'
            'bd368c194d029a0575e798860418153e19882421e8d58e1c0f94cd4d5a3c106b'
            '5d68a0c1525e9fb2c59eb8c559dfd6d73086b093f89049db9a2bb956e533a277'
            '2cfcbf06e3a6d79cb39b7349b8977f80e0c9ef5bc694637f847d4db6924a8dd7'
            '3848bc828a1de8c04da52fa442773a39bed0a6821d978aac8d8599e7ad2da785'
            'd77f7e50ddfa1ffb758a9e26c946d8757182146da8febf0c79b045be0300b06f'
            '9dd475cea100fac56e777aedbaf74462db42dce5e2a5cfae7ba0108b23d8c74c'
            '9ca5a56fe5ae2ee63b539a898a851b0a05ba9d7b6aa2b0d188c478481308090e'
            '90cf51c5890c0e6788d377808ee6c366bdfa34463a835d1ac7f2e1d948c7c9dd'
            '2d373e33bf0eaf7f1948233e318e389eff0cb84da69f8d1e98313abfbc0a8c39'
            '3f6759de20dbf7a7d02701b9f6a523f15b95b8dbdd441e2cfc9150a60acc2a1d'
            'c52a30a2b3225b1279f0cdfc33e171adfab022bd2c73e467d5e1799592f79b39'
            'c8e3cafcdf20955913b15dc0dfc6c967e4ece534cf1d0665dcb4116d93867ba0'
            'a38c48a923ce2a8c2c47aab9847910e9e2dd39d8273aac2059e5006d5d5c8e0c'
            '27116d38f1f3ccfc07d8efc412960c296e57e678de30a65e203e09bcda2b1407'
            'b51ebe0065c8d57fc3ad3e8006ee243d9d5b77eb1470e067bfe9f3e88adb2fcb'
            '9e93e9a3dcad79437e068ea31ce2347a01107fb0403e80e6494caed9b7abea0c'
            '6cf14cb8b85f21d6ff1ab21ae51e8f948e46daee64a93a291060ea7f41ac3247'
            'bb5c2f7cc04bdb479b2d8f7560b90b59e733c2eb9eb8f73163e1fe8dc534915a'
            '93fee30b715ba695883e46c4767ac9deeb2a2c08e182dc6c251938481b883b5a'
            'f501835617e400f2d964e1832984b70eee79d0c565ceb771616425db0eabb44e'
            '0e46e692fec6ae1910f1c6528591efbca8bd2f134fd1e58e1803a59b94cd460c'
            '68fd82b5f10d77ee6d68f1fa746edec5cbed6026bc7ac3112b1b01e18e87c221'
            '844b30e4002f4d60cca83b152275e3d0a6bc1a25cdc48c02336c981a451ff3c5'
            '0395e6bf59d5236bafe6839d879c7a8fb7d1fccdb1eefe73caec29d90adc8ee3'
            '6d9bedee4c2ee7aee2b124d2e37e2aa236d0ff3d0ab99ac7dc22a7d6c9b953d8'
            '980e03f4484328b044999cd8668d77c7cf4db502eafaffc7d95bcc80eb010fbd'
            '6e32cfd58c78c2ee09a69ac075cc62c394bab3d6c13bd359696cc8697b91c6a4'
            '4a78ac182ff08fab8e8be8a0f158111cf2f7a122fec7b45067106c43c5691409'
            'bf76ef166ac738ea8f0d0d71a8dfd43e9dbe24c1f432351d652273e94d9907ad'
            '00fa93b6f739e33e6145e0f4655082554c153245f97c9842cf6c7ce1a118efb0'
            '14c1dade712dfe68449a00a7389a4f51c861ba059bcecc36de8ae67df12694dc'
            '83a5aa57fae20462925240e306e4d79d9f510817d4108b95b285258d2cbc4661'
            '00eb01301e9cd7b1d14678ff78d9e056fde1fb21fbbaed02c1332138d65c069e'
            'ede8a87344b99367f070b09818dd48f4c09e3ea12a2c6354a81b65d46c8ee92a'
            '1c0e01ceda0e0c8f1a2a124f03f10a0cfbed6498924c3a5383b349b9b92a5980'
            '165c40b0a450bcce4dad8751f66601e396b1822d5e08ac5b3ae0dd3dcddce10e'
            'd2de706ae7118dd637948eccee8648115e1cf0e11cfae6b9c6569a5b09519c96'
            '87c4e4ea1b540d2e3e54609771a5bdc2cd7dface21facea1b6837c760c04ff6e'
            'e5675b5fc3c0bffbdaf8faf8ef218a5b900b29bb71867032a3afaff8e0f8554a'
            '8cbf245bc7567f40c5ec768cb0707f66cff6cc1c99337256e5e5e5d7e85f147d'
            '813480f03d1f4c721b4b3e4a7a591e55009fbfd72dfaa4f1c69050d8a351105c'
            'a0449af5660928feb179ee3a5222f28a4eef42f498a525eb9a0cf8f39c49885a'
            'c937962bc69f3c17bcd8a1bee7be255762ad7e82ec53b4620a352e1a6311898f'
            '2cdd595b28d4d1a59ce39a1db451614324be310160ca8b517f8beff0f22fda75'
            '2253a8e8b3f63a415b97c982f1946adb84f3cded2cb2ea88ee2ffeb3249b28e9'
            'b952e14b995d4615a8182875d8c547117ed7a48904fed7522a62fe52c6715762'
            'b0a5f108aed686498f9963bcf437ac29d4e5f67bace18e4997ebadb8cfb1bfa2'
            '6bb7bae35436e569aa0664aa79e4a4f858237b3720a3b8ef3fa100492a75b79f'
            'fcdfa0f9326f96cbf8de5329245ad72af40be27a39bcb5486d9e60eca356b6eb'
            '4764be29b99228dc92f2978daae2e54d146a35bacd4a6293fac2a0358f8fb21e'
            '5617e35eb9e0a7ed5323cd22c72f407a37aa6237f853cde6cd944db43143a9a4'
            '3e4e17c5cc228053d3e52edd878ee967dea90dbe7a833d7ac6cfdf0ca773948b'
            '0a85fb9f57e6b2caf7576fad14f1aec58d14c5d0bf395b9c776c9d6e97e99802'
            '7d1e19c1308bec22fc3e65bb7d00571bf3b5771dd02893c607907fa1b386a69f'
            '720a762f85c8ee9e6fef4de8487f24d6b8f5ae4196f1ff58205cae234f55f020'
            '41a44e6f3282f9eba25feb8f5039ac4e83605b81931e15bc5b15b1a518cc6e4d'
            '15055b4792e051cf2dffd7740b13476974896e7e1f0d06f7650bdafa7b20ac38'
            'ca92777523db8f9f40c598872b6b228b864333f73d3f353551b43105c97814f1'
            '8132a9dee592684e997c2b31e69fb9b58922f0ebb9d2c1c392d8b4d62d12e4f3'
            '0532407072720fc569c4d0ca33311999fff6752c892d1f9d7e423187d57f2aad'
            'ee30c8ecfcfb1ba24569ea8bf55cbe42bf106ff8f09fbbe01ee75339b7199397'
            'f203e8e7a3f673c8577aba06bd5509b6058da9bfa5b72ddd9431a8aa935c7a4f'
            'efcc6bc9c624136eb52dbf1ff043d635e297ee5fa1b93e92b6d3d4599b26978e'
            'f8a4dee0442e70132dc6351fd661fb108e3bbc80b9f7e71a0242a1c8f31dd855'
            'f8d1b88cc57d986b906bcd478ab124a1c2bd7bce3bdd81420262908f7d8778da'
            'de9ef1a82f7081e35b0b50ac9b9e472a23ab71b093c1b221bf311f70276fcab5'
            '7d1dd4ab41d5a7153fd31f81ff7ebf1e4dd6a6a367e330cac3af55a8ae3a23d6'
            'd8c73e0b1cb760b28cfb340d8c266ccbba26913cab674331bdfd505c2f96de5f'
            '81a41ed4af77c39165fc732bd87a3ab1d8dd97cc2225eaf603784a5ccb3830dd'
            'de755326710146be6cc34909b1f5ba5f8b65b67937df1154b034a7da6cf644b3'
            '3a417eca4718865e9610f477a3879a327813fbb80059fb323ad3f91134d680c6'
            '261a4c3412075cbc878d610382bf5b90663de168bed561677e7f725156d28fea')