summaryrefslogtreecommitdiff
path: root/mozilla-testing/iceweasel-i18n
diff options
context:
space:
mode:
authorNicolás Reynolds <apoyosis@correo.inta.gob.ar>2011-12-27 17:17:37 -0300
committerNicolás Reynolds <apoyosis@correo.inta.gob.ar>2011-12-27 17:17:37 -0300
commit0c14c3dd36e1c2f529ffa248383a275cfb21f168 (patch)
treef844a262139ed9aadefa9707776794927a12b1de /mozilla-testing/iceweasel-i18n
parentb24bcd7ea54466fae5136027d6b5bd9fb3741012 (diff)
parentcdb44f3dc8b59a656b0dc5568d731bdcb7c9ff60 (diff)
downloadabslibre-0c14c3dd36e1c2f529ffa248383a275cfb21f168.tar.gz
abslibre-0c14c3dd36e1c2f529ffa248383a275cfb21f168.tar.bz2
abslibre-0c14c3dd36e1c2f529ffa248383a275cfb21f168.zip
Merge branch 'master' of ssh://gparabola/abslibre
Diffstat (limited to 'mozilla-testing/iceweasel-i18n')
-rw-r--r--mozilla-testing/iceweasel-i18n/.gitignore3
-rw-r--r--mozilla-testing/iceweasel-i18n/Makefile36
-rw-r--r--mozilla-testing/iceweasel-i18n/PKGBUILD57
3 files changed, 96 insertions, 0 deletions
diff --git a/mozilla-testing/iceweasel-i18n/.gitignore b/mozilla-testing/iceweasel-i18n/.gitignore
new file mode 100644
index 000000000..bff578e20
--- /dev/null
+++ b/mozilla-testing/iceweasel-i18n/.gitignore
@@ -0,0 +1,3 @@
+PKGBUILD.*
+langpacks.txt
+*.diff.gz
diff --git a/mozilla-testing/iceweasel-i18n/Makefile b/mozilla-testing/iceweasel-i18n/Makefile
new file mode 100644
index 000000000..a0a767c3d
--- /dev/null
+++ b/mozilla-testing/iceweasel-i18n/Makefile
@@ -0,0 +1,36 @@
+#!/usr/bin/make -f
+# Use this script to update the PKGBUILD's list of langpacks.
+# This script depends on:
+# - coreutils
+# - pacman
+# - sed
+
+default: PHONY all
+all: PHONY
+ $(MAKE) clean
+ $(MAKE) PKGBUILD
+.PRECIOUS: PKGBUILD
+
+PKGBUILD.g: Makefile
+ sed \
+ -e '/This line is here/,$$d' \
+ -e 's/^pkgname=/_pkgname=/' \
+ PKGBUILD > $@
+ echo 'pkgname=foo' >> $@
+ echo 'package() { exit 0; }' >> $@
+ makepkg -gp $@ >> $@
+langpacks.txt: PKGBUILD.g Makefile
+ makepkg -dp $<
+ ls src/*/upstream | sed 's/\.xpi//' > $@
+PKGBUILD: langpacks.txt Makefile
+ sed \
+ -e "s/_langpacks=.*/_langpacks=(`xargs echo < $<`)/" \
+ -e '/md5sums/,$$d' \
+ $@ > $@.$$$$ && \
+ makepkg -g >> $@.$$$$ && \
+ mv $@.$$$$ $@
+
+clean: PHONY
+ rm -f PKGBUILD.g langpacks.txt
+
+.PHONY: PHONY FORCE
diff --git a/mozilla-testing/iceweasel-i18n/PKGBUILD b/mozilla-testing/iceweasel-i18n/PKGBUILD
new file mode 100644
index 000000000..45555b019
--- /dev/null
+++ b/mozilla-testing/iceweasel-i18n/PKGBUILD
@@ -0,0 +1,57 @@
+# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>
+
+# When updating to a newer upstream release:
+# - Update pkgver= and _deb*= below.
+# - Run "make". This will do everything else for you.
+
+# We're getting this from Debian Sid
+_debname=iceweasel-l10n
+_debver=9.0+debian
+_debrel=1
+_debrepo=http://ftp.debian.org/debian/pool/main/
+debfile() { echo $@|sed -r 's@(.).*@\1/&/&@'; }
+
+_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
+pkgname=($(for lang in ${_langpacks[@]}
+ do echo $pkgbase-$lang | tr A-Z a-z
+ done))
+_pkgver=9.0
+pkgver=${_debver}.${_debrel}
+pkgrel=1
+
+
+pkgdesc="Language packs for Debian Iceweasel."
+arch=('any')
+url="http://www.geticeweasel.org/"
+license=('MPL')
+depends=("iceweasel=${_pkgver}")
+source=("${_debrepo}/`debfile ${_debname}`_${_debver}.orig.tar.gz"
+ "${_debrepo}/`debfile ${_debname}`_${_debver}-${_debrel}.diff.gz")
+noextract=($(for lang in ${_langpacks[@]}
+ do echo $lang.xpi
+ done))
+
+build() {
+ cd "${srcdir}"
+ # This will simulate dpkg-source -x ${_debname}_${_debver}-${_debrel}.dsc
+ cd "${_debname}-${_debver}"
+ patch -p1 -i "${srcdir}/${_debname}_${_debver}-${_debrel}.diff"
+}
+
+_path="/usr/lib/iceweasel-${_pkgver}/extensions"
+
+# This line is here for auto-regeneration purposes. DO NOT EDIT!
+
+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'
+}
+"
+done
+
+md5sums=('d0dc0653b9d7642e6d346b54fb1782ae'
+ '493920a716fa40daeb5bd8cdfdbfe6a6')