summaryrefslogtreecommitdiff
path: root/libre/iceweasel-l10n/PKGBUILD
blob: 8010f725da6e919ccbb671f4b5d12dbc8bb1a0e5 (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
# 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=37.0.1
_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')

_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,,})
  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,etc,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/{browser/{chrome/.mkdir.done,searchplugins},chrome/{.mkdir.done,$1/locale/$1/global-platform/{mac,win}}}
  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=('6ab481740fdd48790329217a1bbe1fc7d2438bbdc1f767e21ba3d66084f4afcf'
            'ffb844cdeb44a859dc014c118afa1440018c6afcb6286dfb0d60f6676585a405'
            '3660b6f4e989cac1ce558cd866cff0465c3396dabaf7c8528aebd4c7e07b15cd'
            '1902c7611f3b6ccd23b6a9d850c897aa53150ad406ae93cb833aeb794c3b5928'
            '2e6752c9adde50f3689771e1cc103633d09ac10ee36d3afd1dde3d48aebfc30b'
            '660f3bd4be4b5f98b7d5aa625e903ef66be921f9e4ab34506c130add7506cd86'
            'c5f21903056cf7721f733d238388d7b457bea9a738c2d8e3e6533bb3759bc42f'
            '0a995a285dbe41068fb3a29ff64156e622aedda208d5a5016d9e097fb7cf74c9'
            'f1a490c01da95e321125e32f3b79e81c8f04d2abc0323ab309a0289cfffa1f03'
            '1e0f73397055f4a3fb6391703b0a2ecca41caf50d0109ecabda2e6f6b787abe0'
            'f1d4369a7ae3249cf2350582edfd79e6176574ceaffc01b0ee7764835256f896'
            '872db1dc3f3a48624019df92ab279937645285282346ee11831c42906e0953f3'
            '8d95687837d283393b70226b7543549b48fc21c01ced9f97434f436d310bd495'
            'b8235d774ab247c0eceb7fe89b6b35a85dc22abddf416215edaf055201bbe44c'
            '22f9f287e095836b5f2d6c00d7a032bea39e1543578aaa04ac5fd7f96e32174d'
            '3b74d37f9ea8b5f22107c88bfe7954752bff8b0fe73663379d054dd458f01462'
            '69488d0451a322df440977c21b981971aeca75148da5433d650f14819d31dad9'
            '6c6d4b9ff65cb6f980e8ab83679e77fb1c170d94b6b915fdad4195ea789ff59f'
            '573beccda29da01111eb09061d66e39a468b17698a0b22bb007dc9b41bc34d5b'
            '29441c8296ab58089561a9f5dfe12afa619197a37123313d4a7bab13e736d44f'
            'c7eb144ee783772a03814073e9a92b0cda4db9f98cd03e61538a01c376337266'
            'cbbe60b5ed7f7728a6510196ece2049f7aa268f195da3b7a5eb45a1233621c9f'
            '9b9461aaa5e2f631b5f2201ec9e755d5b97de3f9d3c9c1b587756f4148fcd13c'
            'e9a30b34114c1b60a4b65e3da072b1d28ab443a4eb1ab9069784dc6dc8816685'
            '2965e25e6d78a2145612d8ea68a2dd3a20b69b09d483d7e0c13f0dc626723e78'
            '370a845f06995dbbeb8b5fef944f905056259acdcd687fdfa242c012328aa1a5'
            '7ad2decca219f8d474ea81fecca3a7a5ad7b88801c1db6bd0fc302417557b0fa'
            '5eb9bd0aa4037de659f5c235823bb9f976c4f1a00f0f16b954f1ebf5d4a91c18'
            '4af4531d4ac5014c3458449cb8ce44a0610b607b41c9a9a69e286e590f4032a8'
            '38553fd7508aa45f5507e68b18b95e78f1dfe3bb0cc4d44f9a404df9e58941ed'
            '4f10f661bde98118811818eafcc54e4999073ed31b451245c17f7a32ca5dc775'
            'e6ac141e06a16de9c603e263d73012c2dab272c2575b1dd66ec33ba5c609aa8d'
            '46d7055828fec5c08edff181dce29d77d24cd5e572a6d94eb690001bf3961448'
            '9d252461335862661b5665bd0416c18f9fc94ca028158d69cda52b304e4c6a7f'
            '23cfa845ca1e2c3826eaa3c23772721473813ef682efbce9f738a835644abf16'
            '0141748e006b8e71d562da27229e102160978c7fd676912658324b984d8d964a'
            'bcd7daa96a60035b8a1bee1f789d6706ae0863d58000c8840e16f15698cb1f0e'
            'a5550995d6406edeaac704f1891c6c723968fca615e737951d3c02e0c4ada2e8'
            '08b57b854836df76784570968fd6f3a2ae1ef5c875942cde20c8a20cb2d6227e'
            'b3354de1980083b02b920c04b39202fdf0abecfda793fa251c02125a42baea3c'
            'a5849a18ba6f059e3827abcfbc1f18c4756cd76066089663a29015ddaada439b'
            'a592aad3b4dc5b7125f7bfc21f72e1311663b0d7a2e578232014e5d5b2dc5834'
            'f06fceb3f0f1eb6daa7a507b00a0e1b4791c14a833797f0f8e635e66572e7dee'
            'a48a217f38664e9f5242c922818818af59f9b3f157144bc91bfab369d46f0536'
            '7b6adaea9633a7dcc5041a41a8859a6589552e13a829a545ed7e3dd2422b841e'
            'f007a30893a7d14a610fcd282e6a0d7d0e63903385ca1b6bd6e5561c7ddbb637'
            '9320a7d8eee1c18e62b2380a53f7e565d4ae7934e2b62f47a7a6e6abe8287965'
            'ddc8087a8cd376209cc19ec527a893a83eed8996abab2366080a92d5de72a52b'
            'b2d80c4e4c50a7da3702272b44d667c7b13f83648ee6f4311778d8205359e49f'
            'fbf85af923ae77749bd6e59c8ef0898f2f669be6f14f04290acf69c6717b09e1'
            '7025bfba56d2da2fdfdfb7d493a4a74302014ada67598e44fc4fceca9a9411d8'
            '1a80dabdef90c294e545c60a912723e6295c3c2f0c4dfa0f2801e57fa9f4fa96'
            'a6f11538db2b55a430c6fe2122fa738783376078369b9b3b4076bf71c4eb46ef'
            '4044456ca758a372611b5d44952f4aba772dbbeb5bc6d9f1cba268079b2c0097'
            '1f3b35b1b94d2d824ed038da58b537fd4beddc6aec56e9445c62e1700d3c6c07'
            'a1102893ebd45988ae4f9a5f878e76d7ac09c4d673c6b997bc0ff833d5d2c1a2'
            'deda312824872f1ea05588cb5edf0058f117873e90a368b485b2df0975b81134'
            '5089e05cd032fa45d52e923fda8430fa495dca8b0ad05bb71869488887b7cab3'
            'f6deb75c7ba1fd24063048e6d2c25eeb9e0f02a5bc904e7aa6ad7e91311da05a'
            '14befb68aec410d00a78533448a74e418de145406c407a3ea06c22eb54c0fa7a'
            '2d80195dac81a13d71be0f8ee41078470425ec0557dda7ecd20be854183a3b35'
            '83db90a9e3a52649a54b2f426ffcbecf135667f0b92bb990f247f7510b02c850'
            '01d0456dce158a9dd55b5cacd732dc4d9d3e2d9c7c42b4231e89bb494c374a54'
            '477cf6a1f140af93ef2e3483eeef35af502053544ad20adc6dcce1a54c03982d'
            '9df96eec767951a212a7d5f36b31c0b2a8e1b212fd17400f6199637bcb133cc9'
            '18282200388931a64259669c471500caba0d2967deec7f54d101c8a299bf8f7c'
            '400bac087e8a535d001ff4e7f3ff7edb4976274f26f35557d78ec321c77c8ef7'
            'd001d8f39072f662be2320689dee41c73001dad083c0faa6b654729cf79d5ee1'
            '7bf1999e927ddef7eb18b8652dcd987bb756892114d462a70f58a8da2f30c5ef'
            'c5e1a5138351baf1906fde82e14ad1c2f50c7cd06ae14fe39672b6f21eef59b5'
            'a4523bcf4cd2d29fd023ee9efe789d1b2e909336ce06d367217c2f9a9cc1038e'
            'dc524b0560ab6473a6c91d2607b21636a9a4499b126f3bfce29990cbb8400ab2'
            '482903f34a0dcd753c8c5ea74bdeadf495a2198fd5c04265243d8234d05bdc02'
            '2921545ddc247bbed43b62a7e511efeba62ad3dff526b99e4836e511f0594727'
            '8eab16965f1112a9d5c336041d310b6b0588a9c5ce93e156834f3a9ae8bd115d'
            '1bee8690fa3146cd81af787eb5fe11e47ea79a5b89c2aa5621d14933febbf0db'
            '9ec7349debe900c339352d7b71130f9bd0032c52f89682a6a54828ffcb9e431e'
            'f8ffc6ecf95e58193c5ca01ad15f886d8b9ccd417411ccdb51beeae3fcdf96f3'
            '1c7126c75c4308034c5651f972e6a77dd2e49203cf99e27fff7033e0b419400b'
            'cc83ce83ae3079443cbe40d688bacac7b8878f17a79e0abf6d05038e1210fc12'
            'e6dccc1df5520b95f0f6285659432abd24fa23a0bf9ac8be713efd01370a7855'
            'e2ebfa6f0cb351a0dcc42aedd71c3d9e6da26f66ce43940e03843e5074b56431'
            'e3867665f98710837d26d58bfe061184f241117a9dfb42c781a6d50b4cfed036'
            '71da4b031b3cd6bb7613fa0511953ac4b35fad34ce492d615a9569b3cbfd171b'
            '147e94e217be20334d2619068e3381ac23a63cfd6b24c8707c0d0d79c8be4e2d'
            '9d3d39a1650b3f0d3a4fb0710019037574a508fd72cd1f62fe574e2b3c513669'
            '1d7e1ce60e79a85cf59674cbacc172e81c1f6b14c9ab8bca1eebee10cae45c32'
            'aa83fe36e66a4c64618ad78e651ec71686bc1ee9e33ffa378d493cd7aeb6dbf7'
            'b417cf7dac9f10859a4fea2c8f3ec72b426c024aa480ae8540d6bb3b47649035')