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

pkgbase=icedove-l10n
epoch=1
_pkgver=24.1.1
pkgver=24.1.1.deb1

_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/experimental/icedove"
license=('MPL' 'GPL')
depends=("icedove-libre>=$epoch:$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'
         '71b52e9b2ea4b2813579151107b26d7c'
         '0001f92a0a732b2d8d4abe5b73739871'
         '0ca3fd860debb0f4bea75c295cd794bf'
         '3fa1b7e34efb29fcf12ff84c9b7cfb99'
         '0d412e040d7db1bff6ba7a5901c194a3'
         '196390a5683708ea9d1dff08d5da4969'
         '1b580efd13589da4a7c700ce675b4de8'
         '3f0b570ace30f4b8439328f63424914a'
         '5d7890dce639c703319185dcca099c19'
         '02352099e2bb79b9ed57b8b735d1b662'
         '1b463b18db5640f9fb1fbb82f9862d51'
         'f8053c0d509c95643be7c993f79469e8'
         'c7286e9fb549480c7565947162473eb3'
         'a180d36ebe0e04a452c452d8ca249936'
         'faa9054e681927eec112b989b9b9f916'
         'd5b4bbe5cd18b72b7d8c649b68a095bb'
         '5fd037b2d60ff663eccbf0788a52cce7'
         '824805de27a69e5323c6e547974c6c02'
         '6a3e55d20d4945ead133054127b1ba17'
         '81db405732d6b5e6fd057505be5b03c1'
         '25338963e6cbf51ea9c18bc7bd786a44'
         'bfc2a548805ba54bb81d8deaa5fcf406'
         'da5d4edacaf56bbb015987b334c49a46'
         '264aa5440cd50dd1d09b1f6c682dde95'
         '1a671a227b2713f0d7ede3b8c547e003'
         '4dfce580e8d6f889ef868cf1a85ddd89'
         'cded11a2ee85f1bfa704a8bcfd7063ac'
         'ca08979c98adc6b1c1086c1bf037d64a'
         '6d433d1b6395957c9c16eb9efe79c461'
         '412186cd09492af191ef5b8e5523997b'
         '9f5f15ba89ed4a7dd82b973616a84fb1'
         'ff817ed985260ba5b2284d70ede97cfc'
         'c6474a9d0a49b177b8d1daca5e3faf54'
         '81f1379b774a9762918b5bb6fd613a94'
         'dfb5c1393033518e12ae9ff91afeed97'
         '24383d610a424cc71c44b9fa923b9743'
         'c5918f13d25dd124ed8050b7177a6adf'
         '76ec5c28687220f39bac18fd2381ab29'
         '03263f5ebc6e38022c808689ff0f848c'
         'aaa66545fb46d23ea0b5537495b0c08e'
         '5e105d2fd7ad811f3afbe375ab8ef293'
         '955a91d8b73bd14f12afa4be13a45bca'
         'dbd1a1b2ea0777d1df361f973d53c27e'
         '03f0558bcbc1dafa4b29bcf1a69ca170'
         'd1a58f928165c099c01b8687e92889af'
         'a8b3385d0c7679b871cf9bcaf406ca26'
         '2fbeac1775ab8ce9096ee14d628c68e8'
         '450ac4b6e744b7ed8cd92e9852d0e80f'
         '31c56ec4e6de175c75b60e421f1381fc'
         '43d1335568bc7b6806ed5151e7b38243'
         'eaece7103da2f8b19967d5f4b5e7befc'
         '9b3abcfb1ccac0b863dcde99ab487d71'
         '343fcfdec8f55f2e227bb5e1a5804907'
         'ee9931bb007f935c0aaa16031c4319e7'
         'ee92083eea883b10946cee46ac529d21')