summaryrefslogtreecommitdiff
path: root/libre/icedove-l10n/PKGBUILD
blob: ea320b0056f815160c968149dc59f4111ea73ca5 (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.5.0
pkgver=24.5.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'
         'c2b8e92209dee18a05b94e09495f1385'
         'f6cac4c6774a7d51d0e3a22a03e61c03'
         'da248970bf31af33021397bb13b1d750'
         'a457ad88eddc7ada60fc04b8ef6336a6'
         '930b436e34a7766fa192ef6813716a0d'
         'caff4414033312e1a2ff725eabfdbca2'
         'b73b185ed157581bc86dbad70140f781'
         '66c0d28927983ae37589a41b62acbda0'
         '26bb279c4ae7d5987fd2dc834e265609'
         '2cd9b504b4c4d52cb0f6f7a09b12897b'
         'f2d9ab2811ddfe4dec979aae63aadc63'
         '68bb674911996827fb985ab4e0d7f081'
         '5c7304dad3182be7d1a1a0b5b6b517f8'
         '1e6ef27a0f757e1bf3bd48dfcff988c4'
         'bd6530a1f5c3a06d2f974f440b6d8d00'
         '68225d967e08411f1b825bc6d5e4c17c'
         'e507d0dd7391ebe61ea6dae549db79bf'
         '11dbf8261b1cafa849f25d9349e85805'
         'a4dead940907cda0bfa633ce7d641028'
         '165952170f601ab004c148d5fa1c5068'
         '73e2a9b97d1b837acbda9bae9e54adab'
         'ec738fc347191482dd771270891a9554'
         'b61b62c115850b57a9b9d20550da4475'
         '921e5a2f5884e63be3b6d048b3050836'
         'dfbdeafbb865244131c3909c5ea8dcb4'
         '4866218c8e0d95028dba65c571b32444'
         '005ea48a3f6b0ed0c49ef0fe8df056e6'
         '5e2380bd5cf3f060bdf89119c78711c6'
         '722629d32b0378356fb4aae9f9231f61'
         '177fb699efbb8b30cd64971b6d0f6e75'
         '790e2882c8084e995503d1f8f8b79b02'
         '16f4e54fcaa46f44fd8fad365b30c335'
         'b17a85308b26e06e1d97e252469a4317'
         'dda3a2db757797e1fa0178b71b5cd962'
         '297211f4484ae43cbe2efdcfbd4ee1c1'
         '070c2bad3853f2045025a07b3025ed79'
         '6a537cde801fc16caefd7bf7c84dde97'
         'aa0976c319f0363d2c64edd2f104c0f4'
         '85c978c58c59227516e195fd946859d4'
         '221d467d340b5e8d5bfee54b0c78995f'
         '8fc6fc5c4902800a030a45dfdd0e2f66'
         '6dd39f9c8598f3da3397ac304c604042'
         '53b97beda7d2f610c41d97e39eef2c4e'
         '8256a23a300fc2da822f7ba60604d1a2'
         'd8bc9e2baeff937a4d67e2f339a3cee9'
         '9bafb577debd20b9ef3b4e2f583c66ce'
         '18dc25d9341b70464809690bf2df4dd3'
         '22bdcfbb2ba9fe31378c4421b19dac68'
         'e715a23c6f4c5f5830f02c13aefc04c2'
         'df57a059f59ede99d67d54ce28c09cef'
         '73a0368e45b6f7dd46457903e710e96b'
         '794888d55fad6a8ecc24ad68791add17'
         '71b4452650ee04a3051572340f66557c'
         'fe35bcccdafb436a4ce36a3679071c78'
         '744d692118ac876260d47247d79590bc')