summaryrefslogtreecommitdiff
path: root/libre/icedove-l10n/PKGBUILD
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@lavabit.com>2013-03-17 22:40:44 -0300
committerAndré Fabian Silva Delgado <emulatorman@lavabit.com>2013-03-17 22:40:44 -0300
commit71e7b5a2b69e84cfbcd503f9d7ced8f89eee3910 (patch)
treeb8620028e8015ffdcfe200292bc29e6d7a9b9e91 /libre/icedove-l10n/PKGBUILD
parent231d8ad2c43a8d21cdfb824e13742588f8885f67 (diff)
downloadabslibre-71e7b5a2b69e84cfbcd503f9d7ced8f89eee3910.tar.gz
abslibre-71e7b5a2b69e84cfbcd503f9d7ced8f89eee3910.tar.bz2
abslibre-71e7b5a2b69e84cfbcd503f9d7ced8f89eee3910.zip
icedove-l10: creating a way to automatize locale creation for icedove-libre
Diffstat (limited to 'libre/icedove-l10n/PKGBUILD')
-rw-r--r--libre/icedove-l10n/PKGBUILD145
1 files changed, 84 insertions, 61 deletions
diff --git a/libre/icedove-l10n/PKGBUILD b/libre/icedove-l10n/PKGBUILD
index 208e176ba..5fb38bd3f 100644
--- a/libre/icedove-l10n/PKGBUILD
+++ b/libre/icedove-l10n/PKGBUILD
@@ -2,6 +2,7 @@
# Maintainer: André Silva <emulatorman@lavabit.com>
pkgbase=icedove-l10n
+_pkgver=17.0.2
pkgver=17.0.2.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)
@@ -10,15 +11,16 @@ pkgname=($(for lang in ${_langpacks[@]}
do echo $pkgbase-$lang | tr A-Z a-z
done))
-pkgrel=2
+pkgrel=3
pkgdesc="Language packs for Debian Icedove."
arch=('i686' 'x86_64' 'mips64el')
url="http://packages.debian.org/source/experimental/icedove"
license=('MPL' 'GPL')
depends=("icedove-libre>=$pkgver")
-_url=http://repo.parabolagnulinux.org/other/$pkgbase/releases/$pkgver
+makedepends=('unzip' 'zip')
+_url=https://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/$_pkgver/linux-i686/xpi
-source=()
+source=('brand.dtd' 'brand.properties')
for lang in ${_langpacks[@]}
do
source+=("langpack-$lang@icedove.mozilla.org.xpi::$_url/$lang.xpi")
@@ -29,70 +31,91 @@ noextract=(${source[@]##*/})
_path="/usr/lib/icedove/extensions/"
+build() {
+ cd $srcdir
+
+ for i in ${_langpacks[@]}
+ do
+ cd $srcdir
+ unzip -q langpack-$i@icedove.mozilla.org.xpi -d $i
+ rm langpack-$i@icedove.mozilla.org.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=(icedove-i18n-$(echo $lang | tr A-Z a-z))
- conflicts=(icedove-i18n-$(echo $lang | tr A-Z a-z))
- provides=(icedove-i18n-$(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=('2586db5adf22dd42ae272d9fdc1b230e'
- '20c25addb6e2cb3ffec146c1aca81848'
- 'b067b93b7f8adaf83fb8ea72d58b6581'
- 'ec62aaa9fff666c7071869cf45d2d113'
- '12b0e70965d7317a31d7d7b35195ee67'
- 'ff10849757b8157b73707ccfe572edf4'
- '89c7ea5ca764a2a4e4fbb9a720b8bd97'
- 'bf5cf9401ac5b10fa65a1e37a69b134d'
- 'fc97d1b7c0a209351d00e48075715986'
- '9439304cb4c13fbebb24872904df98f9'
- 'cc6f97d63af3686e08a8624930c7784b'
- '35a840226d1b8b3a0484f6327bd43b64'
- '26bf1309ee516fd183eb6afdaf3d703f'
- '9885394265e334d5026430c70d83669e'
- 'd39ac07026e6fea2b6e8cf9420cdae3c'
- 'c3154fd92db6387052b67154eee2c6cb'
- '5cd99e7414eebcc92724752d569ae18f'
- '48517d7a3295cab360e102945c4724f0'
- '27dfcf129c0e1e752149f1065e7683e2'
- '0f24e9851e14537f2d245ff7e0aae9e1'
- '839ffc54ae6593ec4d170957750bd2f2'
- '1a16c57b85ab9805bb7bc9afe8438efb'
- '1481869608ec96bdd2867ff3d507010b'
- '4e9633d016998af326fb0d759e4c03ce'
- 'bcf6664cf8667f5425bad0c4e261f5f8'
- 'a625dd60dffacfff6adab1a764f57721'
- '5c7b974dfc964abc0625ac770c558f08'
- '4c40f6e2da31675609b8fd6473f255a3'
- 'd57c319232421f43638b1af551704464'
- '155143f28edcb18cc39b1ad2b36e4945'
- 'f54217af7efb23324012d1bb3510a17d'
- 'd55d65f2c2b813da2a005beb751d3a8d'
- '23b699906a9ddae4589b2bf69bc40d66'
- 'b5c87362efedd884a5dbecff2f5c5dad'
- 'bec280e6279fb279143a99e348ce610f'
- 'd2eed0961cf3f684b20b4eb0a1d89189'
- 'ef85215d35b1e76e0058b98a9885e09d'
- '821d982f3c859b90615cefc321854fee'
- '03d7b26f8a60a1172b7dad3b45870b0f'
- '78b1830da6f93d87a491704c03bca2f3'
- 'da602151f86db7d701b1806ad0972734'
- '2db261b975a9c1199ef707c96a3ee677'
- 'b04a05cb6e66c2cdf9893954fd8dae49'
- 'c3d3969d4f590dfad0def596d1f5521f'
- '4892a9c3e0554815448d604de3857b37'
- 'b6250637b5beacec9ae6223b9878a53a'
- '987f9765fd6ee3d080533c071dff6492'
- '07e375fb25b3bd39ada11b6e18e7a836'
- '204ad4b577b3b23c664a442766e88cc1'
- '40b03dd5114095fbd15c943e7da3abfc'
- 'e14c994576b6824ff36b3e0e2bba6157'
- '4d1674a0f9d106c5a05c422742802add'
- '0c13d6c651ae5cca046d976df7576119'
- 'fd6da709c6937c419d2962275e3efdf1'
- '8fc2d9cb6724cd6fa010c5870d4d3122')
+md5sums=('d5b2567a8cc8f64591f313a6efdaaffc'
+ 'f3719964e893c1002b7a923e8f95f923'
+ '46afc83b0330e886e13a90668d3ce24b'
+ 'e60a58f5d2db4c2250443050d9bc0723'
+ 'fdf3af74b22b4198cb0ecad6024d2b14'
+ '0805550896db8e15a8fa489070788f48'
+ 'f83c1404b0553ea3f44189344714f6cc'
+ 'e502badb7fcc91b312c5eeb17cc722fd'
+ '8b88a0ba24bfde3da1c8652fe75dc8cd'
+ 'bd82faab59437b0f33dccead7efc7eb8'
+ 'da57be7a409b5b8d406132f25db43f7a'
+ 'bf949e10311d05dc7c373dc915bdaa48'
+ '539dfc1c23df958ecc6654c4d2170f6d'
+ '9954e584899174c0f948f064d9c2b757'
+ 'ff91eebb4f906a1d171493d7ac186cd6'
+ 'c1e44b36e9e8e72c7e336787d17781ba'
+ 'c7213e8e055296c2c175673b1976fffa'
+ 'c917790fb8e15e3cfbb560b437a3372e'
+ '8b110f770bf16b3fd6c32d8297fe060f'
+ '74af1c253e47fc8199f72b3fde055e7e'
+ '0a4b2ab366ef3dcd22ad51d22260199d'
+ '275054e5e293e6bb518e17629b0ca751'
+ '142a36b1f148df04384ecd379368c514'
+ 'bf8369a767b1c9c1fb6dca0d978c67fe'
+ 'f3f187b2a37372ccbd4dec7d6016f35d'
+ 'a78d3e09c33cc08928fe2255fbd996d1'
+ 'b18a056da828bc758540b493608a0c66'
+ 'd7cea5baebc89330fcbecaba9cc0c876'
+ '7c761f8dff55f1d4bfe216b461f42e4b'
+ '52a675528c8506eb8a21effd40c3b440'
+ 'fe48d12b0d8b4e5bfb3d5adb7bfcc4a5'
+ 'd519210f939cc5bd339a8387a5af4f23'
+ 'cfc3a7ca61f7f0703580d7a0393ef50c'
+ '3714b92309d6e6b31963c342ab5b75de'
+ '5cdfbe9c435c45712319e548e813564e'
+ '3c66e0e2e0d5695a5c6c28281f77725a'
+ '221b952f4209662fa8b05530edadb982'
+ '93aadbe17b55931210b34407d8c04b46'
+ '5ccfea7c46a94a5988bce3033f073c0c'
+ 'f65e9b5a3ccf7031c91e80a2c8536319'
+ '15f4b7a17cc2dfd8d87467f7977b8e32'
+ 'e44115576042e8ab9eabb48db8bab7a4'
+ 'cead812402e95a1449e722a35448992b'
+ '03b45e2eb5764070b930392013750aad'
+ '6f043ec05521ef93fbbf3aaf7b623635'
+ '5a4f890227addd059cc7accc4e0459c9'
+ '43c778dcc6e108355875ac61ae93c155'
+ 'dcb7efd90f52aa606f62e9dde685eb8d'
+ 'ecbbf57a1b799181552daf0f3bf00c15'
+ '6702d779aba24ea3a8ce33cf02992f68'
+ '7baf493bc25d3f53bc8c1492675f3d34'
+ '99dabbea411ea1d0f7c79c7b07892fd0'
+ 'd7099ef3a0aa5bdae4f84c01c28f4711'
+ 'fbdb4a0b2d76c6c616f8ac4a19820951'
+ 'a03a08f9da5bd3c91dc92a14a691c4fa'
+ '4d2cc6197fb85415ba0d9d82fa0e4486'
+ '0a868e535a67489fbd4c4aba19c4dc18')