summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libre/icedove-l10n/PKGBUILD75
1 files changed, 34 insertions, 41 deletions
diff --git a/libre/icedove-l10n/PKGBUILD b/libre/icedove-l10n/PKGBUILD
index fdf88e82d..70d3ebf5e 100644
--- a/libre/icedove-l10n/PKGBUILD
+++ b/libre/icedove-l10n/PKGBUILD
@@ -1,66 +1,59 @@
-# Maintainer: Márcio Silva <coadde@lavabit.com>
# Maintainer: André Silva <emulatorman@parabola.nu>
+# Maintainer: Márcio Silva <coadde@lavabit.com>
+
+_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.2.0
pkgver=24.2.0.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=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')
-_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")
+for lang in ${_langpacks[@]}; do
+ source+=("langpack-$lang@icedove.mozilla.org.xpi::$_url/$lang.xpi")
done
-
-# Don't extract anything
noextract=(${source[@]##*/})
-_path="/usr/lib/icedove/extensions/"
+_path=usr/lib/icedove/extensions
-build() {
+prepare() {
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
+ for lang in ${_langpacks[@]}; do
+ unzip -q langpack-$lang@icedove.mozilla.org.xpi -d $lang
+ rm langpack-$lang@icedove.mozilla.org.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
-
- 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\"
-}
-"
+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'