diff options
author | Márcio Alexandre Silva Delgado <coadde@lavabit.com> | 2013-01-16 15:55:21 -0200 |
---|---|---|
committer | Márcio Alexandre Silva Delgado <coadde@lavabit.com> | 2013-01-16 15:55:21 -0200 |
commit | 04c617b106b2d7b53a4b7e66339e62f3bcfb000f (patch) | |
tree | 85b32bb3d937a21544085465cd4cb68655f093c6 /libre/iceweasel-l10n | |
parent | 06a7400674aa407e41b5147be016f71c3acdda06 (diff) | |
parent | 937c8656ecd59d9800c7d6dfb23a816195320bdd (diff) | |
download | abslibre-04c617b106b2d7b53a4b7e66339e62f3bcfb000f.tar.gz abslibre-04c617b106b2d7b53a4b7e66339e62f3bcfb000f.tar.bz2 abslibre-04c617b106b2d7b53a4b7e66339e62f3bcfb000f.zip |
Merge branch 'master' of ssh://parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'libre/iceweasel-l10n')
-rw-r--r-- | libre/iceweasel-l10n/PKGBUILD | 2 | ||||
-rw-r--r-- | libre/iceweasel-l10n/PKGBUILD.in | 23 |
2 files changed, 21 insertions, 4 deletions
diff --git a/libre/iceweasel-l10n/PKGBUILD b/libre/iceweasel-l10n/PKGBUILD index ec959542e..7d75aa3ac 100644 --- a/libre/iceweasel-l10n/PKGBUILD +++ b/libre/iceweasel-l10n/PKGBUILD @@ -22,7 +22,7 @@ pkgname=($(for lang in ${_langpacks[@]} done)) _pkgver=18.0 pkgver=$_debver.$_debrel -pkgrel=1 +pkgrel=3 pkgdesc="Language packs for Debian Iceweasel." arch=('any') diff --git a/libre/iceweasel-l10n/PKGBUILD.in b/libre/iceweasel-l10n/PKGBUILD.in index 05477caef..7dd82c7cc 100644 --- a/libre/iceweasel-l10n/PKGBUILD.in +++ b/libre/iceweasel-l10n/PKGBUILD.in @@ -16,7 +16,7 @@ debfile() { echo $@|sed -r 's@(.).*@\1/&/&@'; } _langpacks=@LANGPACKS@ -pkgbase=iceweasel-i18n +pkgbase=iceweasel-l10n pkgname=($(for lang in ${_langpacks[@]} do echo $pkgbase-$lang | tr A-Z a-z done)) @@ -36,6 +36,8 @@ noextract=($(for lang in ${_langpacks[@]} do echo $lang.xpi done)) +_path="/usr/lib/iceweasel-${_pkgver}/extensions" + dpkg-source() { # This will simulate dpkg-source -x ${_debname}_${_debver}-${_debrel}.dsc cd "${_debname}-${_debver}" @@ -46,16 +48,31 @@ dpkg-source() { build() { cd "${srcdir}" dpkg-source -x ${_debname}_${_debver}-${_debrel}.dsc + +cd $srcdir$_path + +for i in ${_langpacks[@]} +do + 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 $srcdir } -_path="/usr/lib/iceweasel-${_pkgver}/extensions" + # CUT HERE <-- Separates package_*() functions from everything else. for lang in ${_langpacks[@]} do eval " -package_iceweasel-i18n-$(echo $lang | tr A-Z a-z) () { +package_iceweasel-l10n-$(echo $lang | tr A-Z a-z) () { + replaces=(icedove-i18n-$(echo $lang | tr A-Z a-z)) + conflicts=(icedove-i18n-$(echo $lang | tr A-Z a-z)) + provides=(icedove-i18n-$(echo $lang | tr A-Z a-z)) install -Dm644 '$srcdir/'*'/upstream/$lang.xpi' \"\$pkgdir\"'$_path/langpack-$lang@firefox.mozilla.org.xpi' } " |