summaryrefslogtreecommitdiff
path: root/libre/iceweasel-l10n
diff options
context:
space:
mode:
Diffstat (limited to 'libre/iceweasel-l10n')
-rw-r--r--libre/iceweasel-l10n/Makefile59
-rw-r--r--libre/iceweasel-l10n/PKGBUILD165
-rw-r--r--libre/iceweasel-l10n/region.properties26
3 files changed, 250 insertions, 0 deletions
diff --git a/libre/iceweasel-l10n/Makefile b/libre/iceweasel-l10n/Makefile
new file mode 100644
index 000000000..d596111f3
--- /dev/null
+++ b/libre/iceweasel-l10n/Makefile
@@ -0,0 +1,59 @@
+#!/usr/bin/make -f
+# Use this script to update the PKGBUILD's list of langpacks.
+# This script depends on:
+# - coreutils
+# - pacman
+# - sed
+
+# Variables:
+# This is to get it from Debian Sid
+debname=iceweasel-l10n
+debver=9.0+debian
+debrel=1
+debrepo=http://ftp.debian.org/debian/pool/main/
+
+pkgver=9.0
+pkgrel=2.1
+
+# Guts: ##############################################################
+
+default: PHONY all
+all: PHONY
+ $(MAKE) clean
+ $(MAKE) PKGBUILD
+.PRECIOUS: PKGBUILD
+
+PKGBUILD.list: Makefile
+ sed \
+ -e 's/@DEBNAME@/$(debname)/' \
+ -e 's/@DEBVER@/$(debver)/' \
+ -e 's/@DEBREL@/$(debrel)/' \
+ -e 's%@DEBREPO@%$(debrepo)%' \
+ -e 's/@PKGVER@/$(pkgver)/' \
+ -e 's/@PKGREL@/$(pkgrel)/' \
+ -e "s/@LANGPACKS@/(phony)/" \
+ -e '/CUT HERE/,$$d' \
+ PKGBUILD.in > $@
+ echo 'package() { exit 0; }' >> $@
+ makepkg -gp $@ >> $@
+langpacks.txt: PKGBUILD.list Makefile
+ makepkg -dp $<
+ ls src/*/upstream | sed 's/\.xpi//' > $@
+PKGBUILD: PKGBUILD.in langpacks.txt Makefile
+ sed \
+ -e 's/@DEBNAME@/$(debname)/' \
+ -e 's/@DEBVER@/$(debver)/' \
+ -e 's/@DEBREL@/$(debrel)/' \
+ -e 's%@DEBREPO@%$(debrepo)%' \
+ -e 's/@PKGVER@/$(pkgver)/' \
+ -e 's/@PKGREL@/$(pkgrel)/' \
+ -e "s/@LANGPACKS@/(`xargs echo < langpacks.txt`)/" \
+ -e '/CUT HERE/d' \
+ -e '/md5sums/,$$d' \
+ PKGBUILD.in > $@
+ makepkg -dg >> $@
+
+clean: PHONY
+ rm -f PKGBUILD.list langpacks.txt
+
+.PHONY: PHONY FORCE
diff --git a/libre/iceweasel-l10n/PKGBUILD b/libre/iceweasel-l10n/PKGBUILD
new file mode 100644
index 000000000..af600985c
--- /dev/null
+++ b/libre/iceweasel-l10n/PKGBUILD
@@ -0,0 +1,165 @@
+# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>
+# Contributor: fauno <fauno@kiwwwi.com.ar>
+# Contributor: Figue <ffigue@gmail.com>
+# Maintainer: Márcio Silva <coadde@lavabit.com>
+# Maintainer: André Silva <emulatorman@lavabit.com>
+# Based on icecat-i18n package, which is in turn based on firefox-i18n
+
+# When updating to a newer upstream release:
+# - Edit variables in in Makefile.
+# - (optionally) edit PKGBUILD.in
+# - Run 'make'. It will take care of everything else for you.
+
+_debname=iceweasel
+_debver=20.0
+_debrel=1
+_debrepo=http://ftp.debian.org/debian/pool/main/
+debfile() { echo $@|sed -r 's@(.).*@\1/&/&@'; }
+
+_langpacks=(ach af ak ar as ast be bg bn-BD bn-IN br bs ca cs csb cy da de el en-GB en-ZA eo es-AR es-CL es-ES es-MX et eu fa ff fi fr fy-NL ga-IE gd gl gu-IN he hi-IN hr hu hy-AM id is it ja kk km kn ko ku lg lij lt lv mai mk ml mr nb-NO nl nn-NO nso or pa-IN pl pt-BR pt-PT rm ro ru si sk sl son sq sr sv-SE ta ta-LK te th tr uk vi zh-CN zh-TW zu)
+
+pkgbase=iceweasel-l10n
+pkgname=($(for lang in ${_langpacks[@]}
+ do echo $pkgbase-$lang | tr A-Z a-z
+ done))
+pkgver=$_debver.$_debrel
+pkgrel=1
+
+pkgdesc="Language packs for Debian Iceweasel."
+arch=('any')
+url="http://www.geticeweasel.org/"
+license=('MPL' 'GPL')
+depends=("iceweasel-libre>=$pkgver")
+makedepends=('unzip' 'zip')
+source=('region.properties')
+for lang in ${_langpacks[@]}
+do
+ source+=("${_debrepo}/`debfile ${_debname}`-l10n-$(echo $lang | tr A-Z a-z)_${_debver}-${_debrel}_all.deb")
+done
+
+_path="/usr/lib/iceweasel/extensions"
+
+build() {
+ cd "${srcdir}"
+ for f in *.deb
+ do
+ bsdtar xf $f
+ bsdtar xf data.tar.xz
+ done
+
+ cd $srcdir/$_path
+
+ 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
+ cd $i
+ zip -q -r $srcdir/$_path/langpack-$i@iceweasel.mozilla.org.xpi .
+ done
+
+ 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) 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) firefox-i18n-$(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
+
+md5sums=('e88728730ecf9f0f145de5f70e362b15'
+ 'd1651c29cc6f62fab7aa8d399018fdfd'
+ '326c4e887c068f9ecc9c52041a8de0f4'
+ 'c34b9f5b54fe0ee01d4dec85e0be3582'
+ '2b47d281bbe9a46f7a5c1c7a916082a7'
+ '0c8060587becaf417c6184c6259f0269'
+ '9bbbff12bfd00c5b458f844f5e457e82'
+ 'd52c93c34062735809dfcd0047092f54'
+ 'f92175163b97d52c59f77613a1e7068a'
+ '6e4590b2f46ab6d673ea66f1ebe49d0e'
+ '57c52240c1097a4d4e8d688a243612da'
+ 'd159050304d9eee50c90fb24a6767a81'
+ '10cc3fc8a12811eb6c250eacda07331d'
+ '8ee75c270325ac2aaefcf21f05cabee3'
+ 'cf8a6e7c49642ce1e25a0b5f1148d7b0'
+ '8df2b6c9ff9fc809a6b760e7d1c547bd'
+ 'a3bd9cf2ead7ea2fadc05de54f5471d9'
+ 'b5deda5efa7bfee9d40ca24ad3b32fc5'
+ '07c17a2b2ee81e5e92fa40599a11c77c'
+ 'e07a84d04a90835ca3ca382841e3d1ac'
+ '9e8c323c92a448e1e0fea0acf16b139c'
+ '7ca09907a2c13997ce81e0898525c0ab'
+ 'ea968fd0b22338398433e155199a69cf'
+ '5907528876f8bf63caa9a1ba30618e27'
+ 'df46e9156d67d63f8c461d85082c143d'
+ '354dea9cca6f0c52eeaf6fccb0a722a2'
+ '0f66a3864af8dd5416d604444a7caccd'
+ 'a628720aad8c316a67e9dbc6925c0117'
+ '838d83ee766ccc23b413cc78feaaf66e'
+ '5338d8017e52d6a2c2bfa9f0456d06a5'
+ '35e1af40baf6be70d2ab1aee7e685d87'
+ 'a59464ff5e836aeaed88c14868969ddf'
+ '87697f71946a0b1e60fe6364a03511d0'
+ '5f2831e8b4bc47c96a96b3d54e7567ea'
+ '32a9e0a3b117323d72fbcadb61fffc46'
+ '06b942c5ed0827353a66058e20aa1566'
+ '9077b7c5c7f00a9987c094beb18a8477'
+ 'cb5e678ea288eb77cdc72cd775b139fc'
+ 'd81b1b70ad5257c9db2c3bc600060564'
+ '70fe86d4dd3f18398f27a79914a5d5a7'
+ '9b4d5ba6ba647a7612fd2599c2123efa'
+ '405bc14439cd1cc6b2272179697870fa'
+ '4ec5178099d4d573b43379e751824b2a'
+ '8462e327c292c8777859dd9def1bf99a'
+ 'a5310b15b7c4563d6d14a1d992a366e4'
+ '82dbf25ae893b17fd80f622334b40be9'
+ '639ebfb70a105e5ab8abc27cbc0fc6f4'
+ '931c9cec0b02245faf84178a0ee6bba6'
+ 'abf3a17fe5a518a229d98b3165c7ea54'
+ 'f7ce85e60cefbafb9d0a5509163ab2fa'
+ '7ce7984f91bde4a100d1cb235ff9d934'
+ 'bf2a48221ae4bc2b8dce548801936ce6'
+ '403ce2a839e42fdb0d59c94d44d7d761'
+ 'fc70c7291c83014f14a73c63f6c7a96f'
+ 'a055ac9a1d9f4d6c851d5bfc469bcf69'
+ 'ebcf54da830e668474212f18783eb917'
+ 'bbceb1e048430dc4681db49ef3b9fed6'
+ '379590483064e6cea3af18025a418aa9'
+ 'ed754da9e0fd5e8425121f48ae62d37c'
+ 'd89ef20360750693b95678f301fb2664'
+ '5535b58bf3002c06c6b118d5eaed10fa'
+ '4aa12ddad5b1b998d2b4c5ae08fdcea6'
+ '8efc40ce477c9bd375e371e92571de8b'
+ '144cab65088ad01e5821b62c059deeb5'
+ '0aaf40e7427b958ac5808406cd7d2310'
+ '233e98ecfd0a0e73fd4ecdb2dc5eb434'
+ '68dc8ea77bfcf20aad06d63770a88108'
+ '10a92a0b94522f42aab595a2fa299df0'
+ '120c822b8e91bc77e66df5675f68b218'
+ '7eb3b611964f801695f55375c303bac2'
+ '200f29098852065284c153dc7f405016'
+ 'f65badaccceee09063f83342b17b62c8'
+ 'cde4af8ad6fe0368c972a7b4cbbcbf2b'
+ '6ab7c6e0ce48680fead7295604067ccd'
+ 'b207abe2bc1fb8ccd0c55185b943e341'
+ '338860a47735330619099b35c0a6660b'
+ '5a4de6eb0bca5b337c62feb1fd9bb35e'
+ 'a01d5c370b2263cc07e1706e423959c8'
+ 'a1e0594303fb257f6cb94c20bf990fdd'
+ '934033c448d6f4b2b78503d2b7864c16'
+ '71ca1bca582ed7199d9e27022ce0b740'
+ '4c081b33ab71b2e8153628f0a0832ad7'
+ '713a2606488f49cf31dc1ea01a45ad00'
+ 'b1a1f959f8c639c5435e2ed707f275c0'
+ 'fc2f8e28db037c5b2ed0549233199751'
+ '30dee9ddc86d54cff05ab97771f3f2e9'
+ '57a1db9470741338eb452045e1b15221'
+ 'd43034023b5289d5a1dcc4e6fe83c7cd'
+ 'ea15b25281abc80308b4253253c30936')
diff --git a/libre/iceweasel-l10n/region.properties b/libre/iceweasel-l10n/region.properties
new file mode 100644
index 000000000..fe7f265ce
--- /dev/null
+++ b/libre/iceweasel-l10n/region.properties
@@ -0,0 +1,26 @@
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+# Default search engine
+browser.search.defaultenginename=DuckDuckGo HTML
+
+# Search engine order (order displayed in the search bar dropdown)s
+browser.search.order.1=DuckDuckGo HTML
+browser.search.order.2=DuckDuckGo Lite
+browser.search.order.3=Seeks Search
+
+# increment this number when anything gets changed in the list below. This will
+# cause Firefox to re-read these prefs and inject any new handlers into the
+# profile database. Note that "new" is defined as "has a different URL"; this
+# means that it's not possible to update the name of existing handler, so
+# don't make any spelling errors here.
+gecko.handlerService.defaultHandlersVersion=3
+
+# The default set of protocol handlers for irc:
+gecko.handlerService.schemes.irc.0.name=Freenode Web IRC
+gecko.handlerService.schemes.irc.0.uriTemplate=https://webchat.freenode.net
+
+# The default set of protocol handlers for ircs:
+gecko.handlerService.schemes.ircs.0.name=Freenode Web IRC
+gecko.handlerService.schemes.ircs.0.uriTemplate=https://webchat.freenode.net