[arch-commits] Commit in firefox-i18n/trunk (PKGBUILD)
Evangelos Foutras
foutrelis at nymeria.archlinux.org
Sun May 4 16:53:46 UTC 2014
Date: Sunday, May 4, 2014 @ 18:53:46
Author: foutrelis
Revision: 212042
upgpkg: firefox-i18n 29.0-2
Fix a few broken langpacks (FS#40216).
Modified:
firefox-i18n/trunk/PKGBUILD
----------+
PKGBUILD | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2014-05-04 16:12:39 UTC (rev 212041)
+++ PKGBUILD 2014-05-04 16:53:46 UTC (rev 212042)
@@ -6,12 +6,13 @@
pkgbase=firefox-i18n
pkgver=29.0
-pkgrel=1
+pkgrel=2
pkgdesc="Language pack for Firefox"
arch=('any')
url="http://www.mozilla.com/"
license=('MPL' 'GPL')
depends=("firefox>=$pkgver")
+makedepends=('zip' 'unzip')
_languages=(
'ach "Acholi"'
@@ -121,6 +122,17 @@
pkgdesc="$2 language pack for Firefox"
install -Dm644 firefox-i18n-$pkgver-$1.xpi \
"$pkgdir/usr/lib/firefox/browser/extensions/langpack-$1 at firefox.mozilla.org.xpi"
+
+ # Fix a few broken langpacks
+ # https://bugzilla.mozilla.org/show_bug.cgi?id=832060
+ if in_array $1 bg br csb; then
+ pushd "$pkgdir/usr/lib/firefox/browser/extensions" >/dev/null
+ unzip langpack-$1 at firefox.mozilla.org.xpi install.rdf >/dev/null
+ sed -i '/./,$!d' install.rdf
+ zip -u langpack-$1 at firefox.mozilla.org.xpi install.rdf >/dev/null
+ rm install.rdf
+ popd >/dev/null
+ fi
}
md5sums=('60344a81a613f33cdf32fd94a48a4d27'
More information about the arch-commits
mailing list