From 67fe01ae9355d3b1ace3cc4f5b65b1da0214ca9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Fabian=20Silva=20Delgado?= Date: Thu, 17 Jan 2013 18:23:17 -0200 Subject: iceweasel-l10n-18.0.1-5: fixing PKGBUILD.in --- libre/iceweasel-l10n/PKGBUILD.in | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/libre/iceweasel-l10n/PKGBUILD.in b/libre/iceweasel-l10n/PKGBUILD.in index 16017fa61..5cbb7bbe0 100644 --- a/libre/iceweasel-l10n/PKGBUILD.in +++ b/libre/iceweasel-l10n/PKGBUILD.in @@ -1,6 +1,8 @@ # Maintainer: Luke Shumaker # Contributor: fauno # Contributor: Figue +# Maintainer : Márcio Silva +# Maintainer : André Silva # Based on icecat-i18n package, which is in turn based on firefox-i18n # When updating to a newer upstream release: @@ -36,7 +38,7 @@ noextract=($(for lang in ${_langpacks[@]} do echo $lang.xpi done)) -_path="/usr/lib/iceweasel-${_pkgver}/extensions" +_path="/usr/lib/iceweasel/extensions" dpkg-source() { # This will simulate dpkg-source -x ${_debname}_${_debver}-${_debrel}.dsc @@ -50,16 +52,19 @@ build() { dpkg-source -x ${_debname}_${_debver}-${_debrel}.dsc cd $srcdir$_path + cd $srcdir/$_path -for i in ${_langpacks[@]} -do + for i in ${_langpacks[@]} + do + cd $srcdir/$_path unzip -q langpack-$i@iceweasel.mozilla.org.xpi -d $i rm langpack-$i@iceweasel.mozilla.org.xpi install -Dm644 $srcdir/region.properties $i/chrome/$i/locale/browser-region - zip -q -r langpack-$i@iceweasel.mozilla.org.xpi $i -done + cd $i + zip -q -r $srcdir/$_path/langpack-$i@iceweasel.mozilla.org.xpi . + done -cd $srcdir + cd $srcdir } @@ -69,11 +74,11 @@ cd $srcdir for lang in ${_langpacks[@]} do eval " -package_iceweasel-l10n-$(echo $lang | tr A-Z a-z) () { - replaces=(iceweasel-i18n-$(echo $lang | tr A-Z a-z)) - conflicts=(iceweasel-i18n-$(echo $lang | tr A-Z a-z)) - provides=(iceweasel-i18n-$(echo $lang | tr A-Z a-z)) - install -Dm644 '$srcdir/'*'/upstream/$lang.xpi' \"\$pkgdir\"'$_path/langpack-$lang@firefox.mozilla.org.xpi' +package_iceweasel-l10n-$(echo $lang | tr A-Z a-z)() { + replaces=(iceweasel-i18n-$(echo $lang | tr A-Z a-z) iceweasel-libre-l10n-$(echo $lang | tr A-Z a-z)) + conflicts=(iceweasel-i18n-$(echo $lang | tr A-Z a-z) iceweasel-libre-l10n-$(echo $lang | tr A-Z a-z)) + provides=(iceweasel-i18n-$(echo $lang | tr A-Z a-z) iceweasel-libre-l10n-$(echo $lang | tr A-Z a-z)) + install -Dm644 \"\$srcdir$_path/langpack-$lang@iceweasel.mozilla.org.xpi\" \"\$pkgdir$_path/langpack-$lang@iceweasel.mozilla.org.xpi\" } " done -- cgit v1.2.3-2-g168b