diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-02-08 06:39:11 -0200 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-02-08 06:39:11 -0200 |
commit | d21e5be8cd85dee8253a5c1d446f2e30d1a26476 (patch) | |
tree | 4eaf1ab44a896ccc18893e1b634c45cb77aba99d /libre | |
parent | 73b247e9ab430031e3beb8c39c2a7fe161a81f91 (diff) |
icedove-l10n: prolixing PKGBUILD
Diffstat (limited to 'libre')
-rw-r--r-- | libre/icedove-l10n/PKGBUILD | 75 |
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' |