summaryrefslogtreecommitdiff
path: root/libre/icedove-l10n/PKGBUILD
blob: 45294e48e02119f6999f917e108dcfca7e873973 (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
# Maintainer: Márcio Silva <coadde@lavabit.com>
# Maintainer: André Silva <emulatorman@lavabit.com>

pkgbase=icedove-l10n
_pkgver=17.0.7
pkgver=17.0.7.1

_langpacks=(ar ast be bg bn-BD br ca cs da de el en-GB en-US es-AR es-ES et eu fi fr fy-NL ga-IE gd gl he hr hu hy-AM id is it ja ko lt nb-NO nl nn-NO pa-IN pl pt-BR pt-PT rm ro ru si sk sl sq sr sv-SE ta-LK tr uk vi zh-CN zh-TW)

pkgname=($(for lang in ${_langpacks[@]}
        do echo $pkgbase-$lang | tr A-Z a-z
        done))

pkgrel=1
pkgdesc="Language packs for Debian Icedove."
arch=('any')
url="http://packages.debian.org/sid/icedove"
license=('MPL' 'GPL')
depends=("icedove-libre>=$pkgver")
makedepends=('unzip' 'zip')
_url=https://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/$_pkgver/linux-i686/xpi

source=('brand.dtd' 'brand.properties')
for lang in ${_langpacks[@]}
do
    source+=("icedove-l10n-$_pkgver-$lang.xpi::$_url/$lang.xpi")
done

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

_path="/usr/lib/icedove/extensions/"

build() {
  cd $srcdir

  for i in ${_langpacks[@]}
  do
    cd $srcdir
    unzip -q icedove-l10n-$_pkgver-$i.xpi -d $i
    rm icedove-l10n-$_pkgver-$i.xpi
    install -Dm644 $srcdir/brand.dtd $i/chrome/$i/locale/$i/branding
    install -Dm644 $srcdir/brand.properties $i/chrome/$i/locale/$i/branding
    sed -i -e 's/thunderbird/icedove/' $i/install.rdf
    cd $i
    zip -q -r langpack-$i@icedove.mozilla.org.xpi .
    mv langpack-$i@icedove.mozilla.org.xpi $srcdir 
  done

  cd $srcdir
}

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

md5sums=('d5b2567a8cc8f64591f313a6efdaaffc'
         'f3719964e893c1002b7a923e8f95f923'
         'fb33f8da3bc9f0906baf5222098e9359'
         '0ceada37eed6ea7986fdffd6b0ea5aac'
         '612dcc6e280b547efe9d6cebf82a1eb5'
         'fcc841359ef595fb58e6ef2333453ca0'
         '69c31584fd7b442b655e58e4556f5034'
         '479b6a37772b6885c52f26187818c542'
         'b723a4ae893838f4d332c5118bacd2fb'
         '8cae26bd3354071f96faaa58f633f7f3'
         '99fcd0609b232ba167d22200df617ce4'
         '14e0224981659188f41d15d8a2a116bf'
         '1da89ba6776c5be68851ab6782809b25'
         '4e5e74537f138c0a5cfef02931e57c6b'
         '67bb0b85fd5fd3f7344982cb0f93cc60'
         'a7120022d3a957f152044f5d7ce155e2'
         '44a35e42bc9682b42f7fad416f803b83'
         '149da69e91a018b8c2d2341b62091b18'
         'e78c3749605674623a5ebd455d1da5e6'
         '18d4429db86023c3cff4cdfdb3c7db61'
         '327f085c787a61c95b7904f1d68ba8ba'
         'c7f83c1d5fac8bae0257f5269d6318a9'
         '2d8f1bf1e814fc984d791a95c4ef8811'
         '2513698f14cbc85651c5b752845a9d7f'
         '5d727ff5a17e105abe44b1e970868ea2'
         'e233b53dce6072308c190cdb83cb3d08'
         'f8c1f680d62c76607c12cf517fb4d9b1'
         '124a5110c4e807bae739fa5542b21e6f'
         '8031d7162eeb68343d0879550653c13d'
         'af6f26ef85012c84fb28279230a6bf47'
         '93a25ac664d66deb4e0e88a9dd0f601f'
         'f834580781619b97659dc95d8f203d2b'
         'd54e1e7ed5c5d88db1ef2445bc0c9948'
         '7a899329dafb829075f735990171823f'
         '46fb6882a4350a86616dd0859b230602'
         '80492e996b180062f56f9005d4083608'
         '9fab024f293084e98e00639bb156b7aa'
         'a24adcb523efdfb836d7aa8dcb192a8b'
         '3742697f98cec4bb7c565cdede33263f'
         'd9362ae826eb8591db5d6cf3f56bba0f'
         '5e05ee5c2ef8ee9e5869a1f26277df2c'
         '6cd8b8a4f19df69408ed03e7d09032dd'
         '5ff06adb7f42975034f29910f5c9698d'
         '74b76de767b3d1fc5eae3b40f55bca20'
         'd387e154d9a6d322551a16ac9e9b38e3'
         '03c41d2d47146ca18aab8dff9023d3aa'
         '8fb9aa07d7c5244da75192ebaa254d3c'
         '84377496e3bc15d46f85bef767ca13ba'
         '07ac58fb12e6744279670c22bbe41d9b'
         'b12f1a56bc7ce08c2800955257db1799'
         '36ffa376a0e38e5b7000c2725cca994d'
         '1fb8619dff3c3ee7c07e659a88094b8f'
         '158ca3414b6ac982fc0c97d8b4f28c98'
         '1fdabfde405e2bf54a4c8ad25c04d98f'
         'ffce5a4d36bc8a42496fda405ac677f7'
         'e183f1b3c17813399a930cb7b66d545d'
         '12a93560247c526b0d29cacfc9f4882d')