summaryrefslogtreecommitdiff
path: root/libre/icecat-l10n/PKGBUILD
blob: 56b642c7ae01d31a150bd82256b18666d6b11d4b (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
# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>
# Contributor: fauno <fauno@kiwwwi.com.ar>
# Contributor: Figue <ffigue@gmail.com>
# Maintainer: Márcio Silva <coadde@parabola.nu>
# Maintainer: André Silva <emulatorman@parabola.nu>
# Based on firefox-i18n package

# When updating to a newer upstream release:
# - Edit variables in in Makefile.
# - (optionally) edit PKGBUILD.in
# - Run 'make'. It will take care of everything else for you.

_langpacks=(ach af an ar as ast be bg bn-BD bn-IN br bs ca cs csb cy da de el en-GB en-US en-ZA eo es-AR es-CL es-ES es-MX et eu fa ff fi fr fy-NL ga-IE gd gl gu-IN he hi-IN hr hsb hu hy-AM id is it ja ja-JP-mac kk km kn ko ku lij lt lv mai mk ml mr ms nb-NO nl nn-NO or pa-IN pl pt-BR pt-PT rm ro ru si sk sl son sq sr sv-SE ta te th tr uk vi xh zh-CN zh-TW zu)

pkgbase=icecat-l10n
pkgname=(
  $(for lang in ${_langpacks[@]}
  do echo icecat-l10n-$lang | tr A-Z a-z
  done)
)
pkgver=31.1.1
pkgrel=1
pkgdesc='Language packs for GNU IceCat.'
arch=(
  any
)
license=(
  MPL GPL
)
url=http://www.gnu.org/software/gnuzilla/
depends=(
  ${pkgbase%-l10n}=$pkgver
)
makedepends=(
  unzip
  zip
)
source=('region.properties')
  for lang in ${_langpacks[@]}
  do
      source+=(http://gnuzilla.gnu.org/releases/$pkgver/langpacks/icecat-$pkgver.$lang.langpack.xpi)
  done

#  for lang in ${_langpacks[@]}
#  do
#      source+=(http://mirror.lnx.im/icecat/langpacks/$pkgver/$lang.xpi)
#  done

noextract=(
  $(for lang in ${_langpacks[@]}
  do echo icecat-$pkgver.$lang.langpack.xpi
  done)
)


_path=usr/lib/${pkgbase%-l10n}/browser/extensions

prepare() {
  cd $srcdir

  for lang in ${_langpacks[@]}
  do
      cd $srcdir
      unzip -q icecat-$pkgver.$lang.langpack.xpi -d $lang
      install -Dm644 $srcdir/region.properties $lang/browser/chrome/$lang/locale/browser-region
      cd $lang
      zip -q -r $srcdir/langpack-$lang@icecat.mozilla.org.xpi .
  done

  cd $srcdir
}

for lang in ${_langpacks[@]}; do
  eval "
    package_icecat-l10n-$(echo $lang | tr A-Z a-z) () {
      replaces=(icecat-i18n-$(echo $lang | tr A-Z a-z))
      conflicts=(icecat-i18n-$(echo $lang | tr A-Z a-z))
      provides=(icecat-i18n-$(echo $lang | tr A-Z a-z))
      install -Dm644 \"\$srcdir/langpack-$lang@icecat.mozilla.org.xpi\" \"\$pkgdir/$_path/langpack-$lang@icecat.mozilla.org.xpi\"
}
"
done

sha512sums=('d772c5b73adaf7dfc7d7304ee94d8e68ff8643fdcabe51fde2a62a2091a81e950728ebb004fd23e715f2f55020b6bfe4008434b4b16f1869e1384de68c69c6e6'
            'b03e95691842d4eb28b4e2c5321eb1bf2d7c73eb3e6c9d68cc924a3b2a855563d1562aec9ad64b2dafc22b0f07009916b4e5e34f2286daebd931fb4eff97ec02'
            'f58add4800ef4108883f5b72750ac394f50b909d5fe9e359c45c71b60b76e2cc0fd7009bcb61bf56272e7809c4945b4d9ed53914087cee588d5aee7b9954ec59'
            'bdf1e96253003b419220a13b0856cd7124c650aff5c594520ede8054d64ca6a78870d770cba5d5b98c1a797390efba2fff763f2efa3f598b7205bc12ee903cfb'
            'd379c6d14011bec5a02b71010165fe7770873fdbfa0f249f4ea9b2ec2d8d04bb031b9c4a711636fd410831d6d000dae34769eecbf4c039d36ab3defabf7ad6c8'
            '88ef86aad7536d9f9f7d7aa69888c5ece3ea796899ff506f96058ca06de0ac5f18e07cde5280a653deb6425f652b2328fcb5c2ca2329a357c9a44e338c3506c2'
            'bb49f2cc511485fbdd0d70beeade4e29a0e80c76501f1a9e93535f5616c4dfa1b5680528d561d232408fe1b56c62051ee9be36ce59a0f407cf9b861f202d57de'
            'f841558f41bd287aedece42dc1cf27e8169aaf09e0e3653513a4ed9f9acf2c8fd304a7379718752e4baadcafa82f28956594f9c68311cdcdd7e534464bd77874'
            'db9ea67f0f6d918b4f6da7d7ce59941d9513bd8b1eb25e744e4d6eeb09488b41847e5c5ef7f3a603777618fb7b1e4e5a243f6343006c1b5722f264d46f19ed5d'
            'cd8dd9251ea77edc7d20bb390669c1c07a3693231e30efb7c71125df416da41d5ead0c8bdd21a1a939b9fa564f8af3d53cdcd1b3396ee5c262724ce46e0ed132'
            'ce8fdd62ae0f98a41c10ac9e39109056cfe8fb4be19db33a11126d09c8ee5b8fae56ce1345250628f12990c1446ac88eabdd53ef57ff60d2c167b7df4c4f3243'
            'f5ae82a9ce21db932f7cca10cd7b12602aabe705e8ad16920d643184cc7538a81c7d10eafe0bd4057ef00ec9c1e7dcefa86b02632c39bf31f9d4618840498832'
            '67fa61937f4ba0d4fecfd49024f875e784c4ad04680dd15a70136f851c82478bb5a115099094605f110cdc52869e3752ff4fff0f2142537c44c190a4a767b270'
            'b3f07d76bf522329d0ec8dd718471981164a0eadb66b557216e5e9fef9c1ef4724013622b461e0fe662cf332fd0796080226c697195449cb2f80d5b7cb8d2c8d'
            '81765c1f67f63567bfbc81c2c88e36db72b3538908ea1994a33b734ad33506fc11689ffc154d2db207f67492c3514cb41f6f83c49d480ed7d0986dcac059259b'
            'c5966281b739e1128d57ee02a7031e08a4f1b52be1975a4cd11fda94a36dc3eb0123794197b803c34cb4641a8ed66f56d7f1d443082018d6f494422f5a96b2c6'
            'eac1f5a0c14c63406695f7a77a00370d388c08797641716fc193a376ea35cec9f93d1de1b2c2c12bfe143b5227cb2c2494a5b9006f5bc5eb14323ecae9f5d5bf'
            '4ee52d1000afc5d34574de7a43599097fea9af3e08af1022361f66cc984f8cffe69f6db6745712eb6fbb776cf9b893db7bcdca1d0a1ddb12a2fc85ffc522de9e'
            'bdb5dc1aec1e830efdfd0c8161b05e7769e007a3b088faa13c6ed436a2211cf3006bfcdaa3f3c9cf66586bfb3380be6cd0be8ec72ce7577b6081ed37184e4995'
            'ac84ae7b13d8018f46d7a69c64ddd6e4274859f4d06396436070e3f88008081a030cdc03544665ae257b38f00f48dac0a726c08f549557bba0e5bd88df19c5d0'
            '527e7fc9676fd3d04cac6491d6da2f3319d8348a616236e154214535884725324704001954694c873384da3a9a90a99beb7c9020ada70fa4e1a3c84f7d5ffd38'
            '28717ea991ab60d7e71d69d61f2274000eea9cb3428a614a54845260aebed7bc77d4e0a5db55e101e580c42524c1f4d0cd03db9784e029025998215229a2a5e9'
            '06f6e9f1c175848e97cd69ba95a146c7a2c564cf78e083c0799a700c7d8e8d0d5dda842b0844da8609d6abb8103d928b4023e5fef74eed1c519f66f7d3520502'
            '65c12a3f385a4d777cc32fab81d311aefd061863ce7568dbad4bfbd64ac56e7b6e69189bc8b3cd14a0fa91c7b96683ec46bd0b71ce78a382fc01d22293ab3c0a'
            'f6e51feaffa19cb6046d5674f6be798cbee2d716bd1eeb63d2a75290adf88f7b21a8f2f5cc2f91f864404084012fca087c9c29e7bfa03ffd3e744f2b76809510'
            '9e4cb2d0e2cc352ed66be39dc96c7aee2cc027024b952901ed501758a8f71c597cec7f6b8f3bc50c91f67399f249e10653d0056251c5d61ca6727db6ef0a2710'
            'e8d37d32403d09fff3ed0fa6306e429513946d4a290fef3daff06de00c2c18148c8c736ff18e859b93fee248685eae8a8c6477ea57af4e688e2b24dc56e48ce4'
            'ea2b2c06d8f976d0390ab4b240dfafa4b5a5f23b7cbfd3bb74800dcb16e805e38d01238788c30b41d51347bf80223dd906ecc444fc4bf1745ccfca417940542c'
            '4ae5fd181c7452448637f65698662944f9dc3685dd481bfb0d54f8246811a85dd99e2edd8ee4a1a839b9250d5cdbf170f7536a6162dc6bf121311728d7889c83'
            '9a9456240301cf6883f845f584c5c8531116be73f5e1c9858fa3d7e76e109f096a60b7e01b9fafe02a51247355f7e1776ba4e3d1ec1040f76eb1d29403e74399'
            '65487bea6e9eafc7227f75a5fe3fce330f97a27dd4b56f3dedf86b6eeb96b9bf96a055b0f83dde3962718f754ad6432e4a0e40c6c74e0df7004442df6120ede8'
            '12fb8d46488bbf76064d72e91f19fca8eed58a2ab9e86736290a1a80a02c3f1a8c955a2b33ac07b50a8be4f74594aa24ec167cde209baf7ab5ed995a18563d3e'
            'cecef10654b31557da294ee494edf3a11b8faa9eb9fd2db20df14ee718ed834fa27363536ab4c4814b1912fd1697f5ee840747000eb33fd8f5136f5e0a6f14da'
            'f1db82d03eb7dfeebcaa5f7866eeb377eda8621b08bd1021dc0701b380457c5c116463f6d08017dbfd67d4c49da68704780bc7f05e55f8d92e87227747e5cc4a'
            '5fb931025d8f14d6404c8ce8ee14350f9c154f9137dad545d74edd71bad722df07c57204d05a23b017e46f29d699d8cca7a9ccb3fbc94f63508c65f398af806c'
            '771047e55e6c62084a6fad82ab547b879f8c83006e322d3e9c6523b204bf510f2cd8d2723ada90cf7606bcdacc39935f15b623ac575a1ac0287a5d0473b40bdf'
            '95eb4d4c16ec1f58adf92a6e8fd9d248e8ee5508faa002ba194f1f9752481101df458c2f69cdba89d5b1a305cd339769b70c5626a23545c7b39f95abb4b31824'
            '1c2bc9c6342287f63272dba4a556a69286c4269141c764db9d95510d71ba092ef25e43c86d03bf2930e592a79c529f3f74ffaada3f22e9d34a002acb26e454e7'
            '391df1f328162209aa49e9541e9f2529c02aa786bef11426ac0eb0222447d97960a6cfbebd56f8d454580549d3304f7efcc8fe62653f28921f5137d17eb0501d'
            'ec9e869a86ce131e62e462b502d2c4660712efd768ec7069b978b70ba3272f9efbfcd1f73abcb9e611e9602da30957282584e9258acf032b1374a6170f6ca398'
            '1017d73cb7413a32bbf601b7e757cdc5da6b629fc6725af416931673837227f6e74539ff872f8c0e9314a623b2e869bec54deeb8219d28083bad8bec723a3f31'
            'c0ede0fd84046a6d1a3df6567015cfe169ccaf637bef89fa12830bf7fd583ab977af45302baf276e3a9c971bd896e642aee748ade82d35b7d068f1857b9c974f'
            '01b53f1be741b7c2e10f21e61482fb40c47d91c022a357f8d659fcbf934392213d145adc3c2899debf01acc803fb41741e0df9509b26aeb78d93a284e5313b9f'
            '199d79c52699935cf34f3357c9250f56f14db6a06a1fa07d303e16e5ece0206f52a4a4b221379c52fb4c1909f18773dd62518e2fc6a38b9fb645b1f8b5c49c1d'
            'b7992cec50b0fd26a085f67a141c0605322ee2a1c38c36c3388d059b4abc20f2b1903e6c9902941961b3abd77d3c9754eb95f6aad9bae27e1204e65e13d9cc71'
            '238dcf7df70de7b078044b46a1484e48d9605cd4d09d4a7c31445b1442d1d09cfe2f3dabb9ea46f8a36f8b4ddf9bde160eaea5e00fd85ff7a5a59c6eca8d2638'
            'a31435503dda752cf9322652d4739862676d626ec41b413a4ed927ed951dd217383c529b485b6bbaf9c25673d20a17e5c000bba59e76eecd2078354606c82120'
            'cde8b0611a69077b12a3fec418124d59bb3bd8e1cb7e1808dee7f1514fed52921b2750622da13ed76f59d6c2c2896b0a6363207c3a960ec0e05ce090bf6452a5'
            '6d70d4087448416e9852325120f18d3e6f054ad62ea41ebad5dbc0083573072875b2b0ae3a2049cfad2ba92dcb10739fdf72d524fd6921e87467b4447f69735b'
            '5ddb03cc113c9936cec193f63e40c550ed655335b3c137d46939db443171a7bf7a0bfe3ec8efaedd1c50b341f111764adc0ad57441365b15866ec3bed024aa17'
            'aece09e31ddd9c00bba9f7aede845fb8bb65fa933bfa5b3a0bd67ec68ebc0d5960a32c300ff6e02c04d91f846bf8a39933833647f08e555fd5946b9d3a8e0970'
            'bd771b39edc2dc01bd30c66cfac5e3d9252896df629ac64fa06ecb802a422ca5e71a930af846d59ec73b0ebaabaed96914a57d361b965e90d0517b4e4534af58'
            '04f955c8ce49e3b29ceaebd368f2d49f22f30cd4f863e60bf751187d796fa6b3d263b3063f9400351e7f99207756cefa5a17c11c8e96a833bf99644d46e49ba3'
            'd075f434506053f26b07616b5ecb96f17c98cce3253107cf89e9b9554510f166d2ba2624dd19d613df23af57e70bb344c3aa7607da08dd82b60788b27ee4bd66'
            'ca844739973109fd902eeca3fc616de7259bc2df78992fd8de6f6e485b4dbba4ae39043b55a31839da34225607698cda0276bf837c9cee87db9d35a8c13df6a5'
            'a12518d1116385df76addb5fbeda42b121068b35da17c79864f4e995374b13335ecf34d68c1647366d7e87b2eab164cf5ffdebc2094ff47a34db706da8297464'
            '9f154ece06cc881d2b6c856aaa385131c2b503ecb2b90426c8c0a9fcfd54c9632744630e2847209ca66989be814bd056199fac28c69af72530d3613f1fe424be'
            'bce2a683b6572a6aa36091e2e395f6acf02b716c1c51442c47a39089c8803ccc949b39f32aa6a349f563ec4f96247b261d3eccb596f622ae107504611de78420'
            '8c5a5407aece4cc7f918c0ea574d92f109aadd5aeb8ca69d55109e62cf329f3a22081cefa6496751e2a8aced0ae4776789ea7f37e2efec238cfa8fa07ad6f530'
            '3ffc4b7575ebba2ab866a0870620402384aad60e3ec7569e7e06587d914c807773207090248c946e5f2111b15acaee1d1a3bcf12ac563c7982940987621d9ea7'
            'bf39afb12a0c6344ee21259cca178cde75b692556cc8c9752638980b9416d1a318d933efc6ed009f9d7792a5002bf9e280efcb4bfc773f6633491db18a72ed7a'
            '648e17924eb59ee81a9f66d40d44dbb11509cae6d684d5f63d3b508e16dc61d648ba9404b217f1f466b39de6ff6877e8eacb3fd8f51cecf0d2b1680e0f9965a9'
            '2f862c3e3073f35f67d131569ca55d85675f334a4ed7956871fcb125f79efbd3d97586c0ff1644572304bb723adf1c93d5193c0e438202dcfb61cd0bf3cf9d69'
            'af4e202cdcb29a6b4f1bb62726ab6d11303da26f7d6fa8a99becfc00eb2e7f0d87a220e429cfa191eb9d8d79e6880783c059512a62a0849008bff9904f054074'
            'a32a83f6b154c7e20f0f616ba2df9b952d82f14d6327b3ee159887b382fd46bf119d52e08f0800bc7f9e98283ee78fa380b91f07fc10d3b078023236aa1f062b'
            '912cb548f07985ba06362fea510aad10523d0890a4b5161693d5afbcda08437db8a12d76d4932d6a6d9b4bb2b2cb36d001d54fe3276360a736c1d2cc595b5c97'
            '73c20c9a21487f580e5fe18998ba29100e2d5ba69af86915025e23a99f254703fcdadd97104cd5061643142fcdde468ac1b3501eaff38ba00968a25e10278924'
            '433a4851579bba9f46c849a152d647f233caf1bf25e6151bcad1d2f73ab661a34085508b7bf92f60a71e468a5af173258ae197b89fdf44c81c11f5de9e7c78f7'
            '4b64b82cd4dd7ac57576da1dd47951a815e1aa68aa2dec498ee1cc8626f1481f8723cf35d929069aa2a6d02e74c4ea2e0f17ac7eed8e848163a331c0f699fd91'
            '3bf4dc3a28bb2d6d4d9a2c02a838144e45b9918a662843333cdb0aef1505df3715d6ee565d84336bbcdfcc4f1040568e319dc13d66446e72bcdc63337564d2b1'
            'e1716dece817df408ea343da737843093181d1035e76e93db00b63e454cdfdc899d05c7ab1e07f4e1fd8cddc984114c89fcda14a228941177eae56fe8e477473'
            '495a7c962c3808dcf379e45d8e92c976c1f9d45614e1d826f7511dcfb0721503393d9766a82d735d71ee42a1c075d5f4cb5c53c3280bcd549f31ddaaa2c056f2'
            '0de774b0ff8d3c339a5271fed9e666be42a3160adced15e9781355b629e5e20de56402db9a5e4199471a43bcd3cfc72e99b0cfea409a16495febe061cb04e1fb'
            'a14382e1c0aa0bbf4d7491c72bb4997dbf60edcf1205254792d9822800156d38b2f9aa60a275a389b7e11337958bec12be95a9b2215fe7ad5dfd694f74d9f84d'
            '2dc97a572ad7ee679459b3d933cc0d1c9373ed4aeb99ef519eca10cd6369470849481848a3df548e245e8b78ee3b6c83cf0888bdfae8255efa3f0454011524a4'
            '50afbadca31c77ded75a12c135d81ea20cd811c11c275ff154c332457a259e2e1551880114ef795c0688b31b312ebf734ac8df7239a72685eafb174c2c5f2cab'
            '9375bb73589bb1aefdef5eedeaf09cdb431e3cc925f33f8db0f64ecfd97506925f3c79aaa5ec4842a3f8e9b2b0fc9370213d18f379b5ad15a9be1f96965cb852'
            '198fa5dd3524d8d1852985e52d5374bd1c287a4998fcf96464012e70c640463e8fbb04b63116a8863eb78c6145e30fac9a518b78af2b70b632b29e18d5cee289'
            'a58ca226532d7d00127fc17a9448f5af09dde84e4d2ee307d6a8ea4ffab59b7efdf434f7f4a2a7b3b0c5ff58984cb3c9fc3971a28b7e23c3087b5b41d81767a0'
            '8213085d466dc8c7ab6cbc54c6eb800ba6da2f237021a87f9ee1588f58d0e412cf23b990fd7565dc1695fb79198c74e3b70da9e95e30f39dd0e67e7f5b341a5d'
            '1ff640666e15ce90db4ab331ff182d7e3a35cf7b60667c12b76a751ea3c11a65e5c5a1d7faebb48349e6887fa640aea8875c379dab04121fcb448bbebe01cbaa'
            'e72bc490b7e537910b246c2feb1377be2d994eaab11c5fe4860e351232a2cc09ba3e896850ffc43df17cff7082db5b729ba984852ce9a0d1c143d44fb70540d4'
            '663d9af822dfc588760f68386583f764cb84167f0fdecc640cd19d18c5025d247d6a8523dcc15711bc993a68c47d69ac3cc284130c9612a58abaf3e18049ca04'
            '1796882f7ed92b5cc6613e3dc2aaa5c0cfd4ac54bf04849888e6c6e469a0b4617d26bbb607775559de47c27bf5eb8d75db0e98cae0c795702c6d61394737b073'
            'bb2d4883ee9538a2ef932228cda1ecb3db7059e1404ca455ece4acd7e4d02005ff2c6bb6aa7d4ef6841711e544c06a9ee635e385c4d6d47f75494c04a772b366'
            '1c49f9ee0723aee04556740a27872092b93665ba27f92fcd4847eaea86f154e7fa0b26f80aa2f50f15cf96f5336a87a6e7eb64d476496857f3fc859b2c691a6d'
            'bec565deaf9ad9a8d2e0cd17997664414f783dc2e208b5ae20e2cb25820ccea5416d1dfa2965e32cb465ca0629149c76bb4736e31fe054323b8621cfba16ec88'
            'f9bf12e6e924f6c820d0bb947e7819737c57576a96814febac5165610d80ea35550f1cf106048ec79143c23ca36baaf7ffb7f2c989aa973f72b2029772a43df8'
            'ede007b080e08fce8d86e08d98ef315451a7d51db8758c96fd950bb971ee3541c1881c74dbfad2fa6562bb711b0d2b8a832085166baeb4c3e81995d52fdb5be5'
            'd5b92ba97abcee96974236b4d5f7874956420449b23ffdee06a2231f5df66c3f708ec8403f50f5d9cb636b55f45f6e386d8f759c51430473560acf67a1a43d0e'
            'c19b74ce0da72ae2c8251ae638fd864578c832dca4c2aafdf7fff101f09db128ea754749aca2b7fbf91fb6b6453526f9faea867e54d240ff1013e4ab70f43ba9')