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

_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)

pkgbase=icedove-l10n
pkgname=(
  $(for lang in ${_langpacks[@]}; do
    echo $pkgbase-$lang | tr A-Z a-z
  done)
)
epoch=1
_pkgver=24.4.0
pkgver=24.4.0.deb1
pkgrel=1

pkgdesc="Language packs for Debian Icedove."
arch=('any')
_url=https://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/$_pkgver/linux-i686/xpi
url="http://packages.debian.org/sid/icedove"
license=('MPL' 'GPL')
depends=("icedove-libre>=$epoch:$pkgver")
makedepends=('unzip' 'zip')
source=('brand.dtd' 'brand.properties')
for lang in ${_langpacks[@]}; do
  source+=("icedove-l10n-$_pkgver-$lang.xpi::$_url/$lang.xpi")
done
noextract=(${source[@]##*/})

_path=usr/lib/icedove/extensions

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

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'
         'c93121b73fdf2d39afccd1d7fd60caeb'
         '57fca5d7db9a2a37e7a0d201af2a60b3'
         '6d03ecb778960fc2c6566b8446b62464'
         'b70885875e7782a83aff337b5902e21d'
         '7d701ee758ee54f9d88244699c7138e3'
         'fee5fe03c66ae9cda9f3059a70fc83c9'
         '6376a5852220121283ea313b0b39e130'
         '6c75e768ca2f68082afa26760f0b4ead'
         '3d308869a1a30c0833ec4c33c1767520'
         '37e8dfd5b1221d4f72195a06497fad72'
         'd719de92a69b45bd484aabf4306ba381'
         'c2070ce6b1f73a2f06551af1cf82cff6'
         'fc373863e6840544efe4299000dccbe4'
         'b6bab7f30edb369a0ba4626d3ec6ce93'
         'f009615785602b3ca245049da9639150'
         '710a86030ec210c6c445ddcc2d28ab1d'
         'e68b6bb74550bedddfcfeba881389728'
         '6c082285c132cb0142060193c75705a1'
         '8dc1f11fb8245fd4a204843bf8594523'
         '1de07a0a23c12c4ca64d88555b520c4a'
         'd9c0e3ada62ed9c054e7cebfcc36bc68'
         '0daf1191b0030635c9308245f68f257e'
         '279f6b97ac045ba3e4480a9c9bd71744'
         'ba0a5b5a036cb697b36111836f5861b5'
         'a48efe83aaaa2a7f8329065731ee8a35'
         '839cea908690c20dc8614827337a9c99'
         'a96f075ea17f05c5ad8e87a42faa4a1a'
         '97d7c494bcfe7d11a6b6343dd0e4a4ad'
         '6b115ff2a5ea92a230f3ec1016779384'
         'c4ea285c1beed7c5284744380b9ffcae'
         'a610bf078d35617eea8629d05c5bafbd'
         '1e1fec3a3d3e41672af1493c506cf5c8'
         '196f87e18f671043eacb427018b1673a'
         'fa0f146d7a490be0b9d3f19efbe55508'
         'b9b42d45be5e1a22fb1f9a8991215b86'
         'fc318ea8b805bf14c92d4fb66e20fe84'
         '8d469a4689d390db43f4410361847c09'
         '26440002e34ef51b920d0382e46faa37'
         '49765ce7a015a477313e22eb8d771e8c'
         '29f3b1273e896b563d1f14d9ccc9a066'
         '92e12e47e8f774c9d2bbdbc0ac94b4a9'
         '884f2346fcf1ac6fa1a1b695ab40f1fd'
         '25eb46d720d366297461f594710fa3bd'
         '2a8418e9d4a9a87b1376827bfafdc21b'
         'b4403e9140f8a6689303540ba0f7202c'
         '82eda2c5ab8ebaaf468084f4c3b06198'
         '30ac79a8878c1a1ab38dff17ba946ae0'
         '13ae166d1ef84de79b6f745e9858824b'
         'a6add04eacdcad4d02a9aac8abdcebba'
         'e411c419e6661ca676a7673dca2c4258'
         '630a49e221fc6338ac6b4ac24d51a6b3'
         'f771ba594831dde641f321886de24fe9'
         '27c64d8de7a261091def28986b41009d'
         'd42570097f0dd843789519c7104d387a'
         '8889a460ebec9c2d88651ce3a9e46892')