summaryrefslogtreecommitdiff
path: root/libre
diff options
context:
space:
mode:
Diffstat (limited to 'libre')
-rw-r--r--libre/iceweasel-l10n/.gitignore (renamed from libre/iceweasel-i18n/.gitignore)0
-rw-r--r--libre/iceweasel-l10n/Makefile (renamed from libre/iceweasel-i18n/Makefile)0
-rw-r--r--libre/iceweasel-l10n/PKGBUILD (renamed from libre/iceweasel-i18n/PKGBUILD)28
-rw-r--r--libre/iceweasel-l10n/PKGBUILD.in (renamed from libre/iceweasel-i18n/PKGBUILD.in)0
-rw-r--r--libre/iceweasel-l10n/region.properties32
5 files changed, 54 insertions, 6 deletions
diff --git a/libre/iceweasel-i18n/.gitignore b/libre/iceweasel-l10n/.gitignore
index 3e1eb57b5..3e1eb57b5 100644
--- a/libre/iceweasel-i18n/.gitignore
+++ b/libre/iceweasel-l10n/.gitignore
diff --git a/libre/iceweasel-i18n/Makefile b/libre/iceweasel-l10n/Makefile
index d596111f3..d596111f3 100644
--- a/libre/iceweasel-i18n/Makefile
+++ b/libre/iceweasel-l10n/Makefile
diff --git a/libre/iceweasel-i18n/PKGBUILD b/libre/iceweasel-l10n/PKGBUILD
index 437e959d3..ec959542e 100644
--- a/libre/iceweasel-i18n/PKGBUILD
+++ b/libre/iceweasel-l10n/PKGBUILD
@@ -16,7 +16,7 @@ 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-i18n
+pkgbase=iceweasel-l10n
pkgname=($(for lang in ${_langpacks[@]}
do echo $pkgbase-$lang | tr A-Z a-z
done))
@@ -29,12 +29,15 @@ arch=('any')
url="http://www.geticeweasel.org/"
license=('MPL')
depends=("iceweasel-libre>=$pkgver")
-source=()
+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
@@ -42,21 +45,34 @@ build() {
bsdtar xf $f
bsdtar xf data.tar.xz
done
-}
-_path="/usr/lib/iceweasel/extensions"
+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
+}
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$_path/langpack-$lang@iceweasel.mozilla.org.xpi\" \"\$pkgdir$_path/langpack-$lang@iceweasel.mozilla.org.xpi\"
}
"
done
-md5sums=('08556c8d27a4313b5e67e655d2e1e828'
+md5sums=('428246ef3fb64103ff2cf5eaae2a92ca'
+ '08556c8d27a4313b5e67e655d2e1e828'
'9fa01f43db09b12cd724f94c28883a9e'
'0d1ef852709fcae1842105d675c22312'
'56247c867b52a19808ca72f7fceb349a'
diff --git a/libre/iceweasel-i18n/PKGBUILD.in b/libre/iceweasel-l10n/PKGBUILD.in
index 05477caef..05477caef 100644
--- a/libre/iceweasel-i18n/PKGBUILD.in
+++ b/libre/iceweasel-l10n/PKGBUILD.in
diff --git a/libre/iceweasel-l10n/region.properties b/libre/iceweasel-l10n/region.properties
new file mode 100644
index 000000000..4399d8db7
--- /dev/null
+++ b/libre/iceweasel-l10n/region.properties
@@ -0,0 +1,32 @@
+# 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
+
+# URL for site-specific search engines
+# TRANSLATION NOTE: {moz:domain} and {searchTerms} are placeholders for the site
+# to be searched and the user's search query. Place them in the appropriate location
+# for your locale's URL but do not translate them.
+browser.search.siteSearchURL=https://duckduckgo.com/html/?q=site%3A{moz:domain}+{searchTerms}
+
+# 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
+gecko.handlerService.schemes.irc.0.uriTemplate=https://webchat.freenode.net/?channels=%s
+
+# The default set of protocol handlers for ircs:
+gecko.handlerService.schemes.ircs.0.name=Freenode
+gecko.handlerService.schemes.ircs.0.uriTemplate=https://webchat.freenode.net/?channels=%s