summaryrefslogtreecommitdiff
path: root/mozilla-testing/iceweasel-i18n
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2012-01-22 19:42:23 +0100
committerMichał Masłowski <mtjm@mtjm.eu>2012-01-22 19:42:23 +0100
commit937e299ee44ba8f8fc07ea3f03229a2139b8bef9 (patch)
tree18a57dbd45825d225e0356dfc066ea6151b9e65b /mozilla-testing/iceweasel-i18n
parent35556f5872911e626749f3dc1f92caec7a4ad32c (diff)
Make iceweasel-i18n work with newer iceweasel-libre.
Diffstat (limited to 'mozilla-testing/iceweasel-i18n')
-rw-r--r--mozilla-testing/iceweasel-i18n/PKGBUILD15
1 files changed, 12 insertions, 3 deletions
diff --git a/mozilla-testing/iceweasel-i18n/PKGBUILD b/mozilla-testing/iceweasel-i18n/PKGBUILD
index 0973cbb07..fd56f38bb 100644
--- a/mozilla-testing/iceweasel-i18n/PKGBUILD
+++ b/mozilla-testing/iceweasel-i18n/PKGBUILD
@@ -14,6 +14,7 @@ _debrel=1
_debrepo=http://ftp.debian.org/debian/pool/main/
debfile() { echo $@|sed -r 's@(.).*@\1/&/&@'; }
+# echo $(ls src/iceweasel-l10n-*+debian/upstream/ | sed 's/\.xpi/ /')
_langpacks=(af ak ar ast as be bg bn-BD bn-IN br bs ca cs cy da de dz-BT el en-GB en-US en-ZA eo es-AR es-CL es-ES es-MX et eu fa-IR fa fi fr fur-IT fy-NL ga-IE gd gl gu-IN he hi-IN hr hu hy-AM id is it ja ka kk kn ko ku lg lt lv mai mk ml mn mr nb-NO ne-NP nl nn-NO nso oc or pa-IN pl pt-BR pt-PT rm ro ru si sk sl son sq sr sv-SE ta-LK ta te th tr uk vi zh-CN zh-TW zu)
pkgbase=iceweasel-i18n
@@ -28,7 +29,8 @@ pkgdesc="Language packs for Debian Iceweasel."
arch=('any')
url="http://www.geticeweasel.org/"
license=('MPL')
-depends=("iceweasel=$_pkgver")
+depends=("iceweasel-libre>=$_pkgver")
+makedepends=("mozilla-devscripts" "xmlstarlet")
source=("${_debrepo}/`debfile ${_debname}`_${_debver}.orig.tar.gz"
"${_debrepo}/`debfile ${_debname}`_${_debver}-${_debrel}.diff.gz"
"${_debrepo}/`debfile ${_debname}`_${_debver}-${_debrel}.dsc")
@@ -46,16 +48,23 @@ dpkg-source() {
build() {
cd "${srcdir}"
dpkg-source -x ${_debname}_${_debver}-${_debrel}.dsc
+ patch -Np0 -i ${_debname}_${_debver}-${_debrel}.diff
+ cd ${_debname}-${_debver}
+ # Fix broken files or avoid unnecessary dependencies.
+ sed -i 's/$TARGET/$TARGET ; exit/' debian/build-script.sh
+ # Langpacks initially state to support exactly one browser version,
+ # Debian fixes this.
+ sh debian/build-script.sh override_dh_auto_build 9 21
}
-_path="/usr/lib/iceweasel-${_pkgver}/extensions"
+_path="/usr/lib/iceweasel/extensions"
for lang in ${_langpacks[@]}
do
eval "
package_iceweasel-i18n-$(echo $lang | tr A-Z a-z) () {
- install -Dm644 '$srcdir/'*'/upstream/$lang.xpi' \"\$pkgdir\"'$_path/langpack-$lang@firefox.mozilla.org.xpi'
+ install -Dm644 '$srcdir/'*'/build/$lang.xpi' \"\$pkgdir\"'$_path/langpack-$lang@firefox.mozilla.org.xpi'
}
"
done