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
|
# Maintainer: André Silva <emulatorman@parabola.nu>
# Contributor: Márcio Silva <coadde@parabola.nu>
epoch=1
_pkgbase=icedove
pkgbase=$_pkgbase-l10n
_pkgver=45.7.1
pkgver=45.7.1.deb1
pkgrel=1
pkgdesc="Language pack for Debian ${_pkgbase^}."
arch=('any')
url="http://packages.debian.org/sid/icedove"
license=('MPL' 'GPL')
depends=("$_pkgbase=$epoch:$pkgver")
makedepends=('unzip' 'zip')
_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"'
'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')
_url=https://ftp.mozilla.org/pub/mozilla.org/thunderbird/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 Icedove."
replaces=(thunderbird-i18n-${1,,} icedove-l18n-${1,,})
conflicts=(thunderbird-i18n-${1,,} icedove-l18n-${1,,})
provides=(thunderbird-i18n-${1,,})
unzip icedove-l10n-$_pkgver-$1.xpi -d $1
rm -v icedove-l10n-$_pkgver-$1.xpi
install -vDm644 $srcdir/brand.dtd $1/chrome/$1/locale/$1/branding
install -vDm644 $srcdir/brand.properties $1/chrome/$1/locale/$1/branding
install -vDm644 $srcdir/region.properties $1/chrome/$1/locale/$1/messenger-region
rm -rv $1/chrome/$1/locale/$1/global-platform/{mac,win}
sed -i -e 's/thunderbird/icedove/' $1/install.rdf
cd $1
zip -r langpack-$1@icedove.mozilla.org.xpi .
mv -v langpack-$1@icedove.mozilla.org.xpi $srcdir
cd ..
rm -rv $1
install -vDm644 langpack-$1@icedove.mozilla.org.xpi \
"$pkgdir/usr/lib/icedove/extensions/langpack-$1@icedove.mozilla.org.xpi"
}
sha256sums=('49b419449431d8d64e20427a2e7105e3ac1ffc41e677a5f9a8eb276f5b82df4a'
'acc2cf95661be7cb8928fca89e08d0681685409ff2428e4e3d25baf1af427b38'
'e6edcc7c478d73ca5a17e4889acd302d55201ec5c29de545d3f44165201923db'
'64d4bf7ae5b134921b23cf4cad64c4f53a6f8dd84bc0e2c5b7fe48ab54351659'
'88058bc53d278e94b13fa080eefd0aa55b1a4db395c1eae6fd4b74bc07d0e92b'
'99500e9056b013a54da2436c1b00807b2e58c6de3591c2215ecdbbddd35b525f'
'a57be6f20d3298ffc7cf05a4c1b541f4a2afd44943558ec1e00da08c5636c99a'
'e94839bf309c31830498f0a3a4c7a6c8f26312c295c029db1b41df6756524bd9'
'98e42508ff614c4ac1cb43732f1ff3a0efe20615a3d1a4177d4488ff87f923f7'
'ae5e378034cc754889cdd964d631b8f4e8cb4940f465937bb89a5c0b9898ebc7'
'4af2d7c93c0cce6062f3cf47aa47395388be51fe9caf4b206857c860b1091081'
'c264d06fd73fbcecc609b0bcdea6ea58ea51bbd9e485dfad31fbcdb5bb8af4c0'
'495ab8331c2578e3a71751cafb2cae937e42125713e4a68f1e21a34f2249d067'
'fb9026189a2e2f6d2cd83ea3c50a983ebcb1014d3ecdf7666a18b520bd18dc09'
'f54ffa1d5ef0d17e996da758f427817e7abe13fee5895bee5379b4566545d869'
'd0798c5fbe1be6ef6147b2ca7c93d48522ff6721ed6422bec98878d6b64dd65a'
'18ed3f53c6664e21a96ca1e86f2f6ea494cd948733c576a3adeec61b454c4829'
'94cf35f455941db5b9d82d2b7473a46adc19e2ca7808f766945a481185755612'
'2db090f80c7038fa4f39bf88f74cd2e2938c7b39be622db65404d6af56b38263'
'e5f7af2740f8c01aa36e657824be51c758fe068dc89bfc6939d3e6cb04fd4209'
'68e1d07a63a242807cdca85c8a0a14e4c5f0da5e38eb09d16f86ff07580107ba'
'47e0b18f66fc66bdd562f218fc07e6f28215813302a20ec2484b131172f17878'
'3a3d1651b58df480813afc791da6fac68955aecaab5101045a13f87587aae695'
'4319105423683e3bfff62dfaf641f325b5311b6067a4e36b4b3920f7761eea27'
'79a33520bd11288d96b5eaa7749a2892f397fbd14193858236be8630a0d6384e'
'708172a893d1facd30ce7aec1884e2b63cccb8e659e5a27458dfa5e46e0a5c78'
'fada9422cc41c75042a814b0fa4e33443079772760495dd8bae7ea83b932ce61'
'e433772cd7c581a3920a394802a7a08fb43d9fcba3a234c6bab45bc6e06033c4'
'fd21b3f57a7edd7476a6e19218a3d02638aa7eb2b36c5df3f545b7841c2c0553'
'08f5bd9b11ce6254778600d3c73878ddd74d2a167fcb8083dd743bcabb0b9000'
'5309288c86b16f682f069866e7a72fc0942e99e88c9255c9c54325dd36f62c2e'
'fd1f0b5d11893f9645d8344a2607ad59986f9fc6db5dd41014428605e4e8d946'
'34baa7c614bf2dbc959870690dd0ce0f395aa7823d1ad735bd196974cdd5aacb'
'be4d0bb1a591bb7f35c3a4fe43690ce2bd1ffd01e4ecd410803adb0dc059cbab'
'c6fb89f2b062ccbfadc8d5be7bbd7249687889e7a9786685e1046120d20b9258'
'd05b2e3112479bf3c21b4347f4d6e9fed4f47e5cb520183adf70e5c9274a7b9a'
'692d332fd800a05c2d29cf3a46da3eb60e8af5f917ec4fb484ea5190a3a2e3e7'
'c9e12d4f060d3107db92b36a9a575db284625d6ff6cbbca02bb6a5c33640a8fa'
'c266202d59fc903ad4ea79192ca05fb9f3539af27cf0351b696ef22d2fcbb477'
'99806ab184a996595c426ed88a8cc72d4d948580983378117041c06e401eeaa9'
'47f38dd509a998684af7baa6badd865b89cfde3b9d65dc28cc21f64421bbbeab'
'2bafdd946d90ce34ba6ec2866666ae0d0fc425cde402931cc9073fece5f2e56e'
'b53b5c02f45944dcf53e87c919daab561a0e63dc077252af0531653b34f8637c'
'dcc012fd8e4f58e50de1e15b6bb2d77597ad0db0481f86d903e31182b6c1c6b7'
'129512ed1d713235f2b87218675e76040add02858f46c0d3e36d5f43712c3e99'
'ee3ed5d1d6d3308a506dec6e072867ee631186114588399a4a797ef64afd2401'
'1f164db6a8ba26d2400980346c0979a3a25bb05d03159a7bafbc695ec49544b2'
'abee9b9a245b7fc7298481cb315cb21feeb98edab27a6818691c020a3ebf4e79'
'd533a1a29c946b4dc26f41bed4b1db0ed0d2a25052e5ad94a196bdd9bc158f00'
'cfc36a29ea501d43e418dfb5cdec6211a72029e210dfc668f5fc8a3560211bb7'
'ae3176c6271263c5e5edf8f8795f6e21b28a2414082be55578a44980180a2165'
'6f3da3412445643ab061bd035b9ea47efe45be0cb3e7119469ae0d367861fb68'
'0588f3a64ddf0d13571d8c16ed4bb17dcdf8180d1dd3a520e85ad08753a8365f'
'3f51e7bdc64a7dd0e04247d379d870b06ae07680bfefb9f2c5a1bda97e725fdf'
'1dfe7a109a703f07171c7a9857e11534382756b7d7afd220a0102c2bb8132edd'
'cb8a1c1ce7feb4b972041dd3971adb591c434001a2eb9a0fcad9f96d85ad62f8'
'1434b31ab137d76b4ea4f0ce0038133ab55be4a07e7ab18d95d4ed9af0570eee'
'de694c24e60f471c5badd3327341c4e93010cdb221b92e03ac9697e0eaa1c416'
'32f546bda57ff04b1267b17a891dc07b8a6e68fcafe2e42ac3592b4b7e8978e8'
'971bfbcd7989c53ed64541797cb72f3bb4a32b088d4ce0ec7be36cbd9f665911'
'e0f4ce434e7140216e4af69dbbd45eeb82a4ed311d9ff9619a41027d5a2a261b')
|