summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libre/icecat-l10n/.gitignore (renamed from libre/icecat-i18n/.gitignore)0
-rw-r--r--libre/icecat-l10n/Makefile (renamed from libre/icecat-i18n/Makefile)0
-rw-r--r--libre/icecat-l10n/PKGBUILD (renamed from libre/icecat-i18n/PKGBUILD)42
-rw-r--r--libre/icecat-l10n/PKGBUILD.in (renamed from libre/icecat-i18n/PKGBUILD.in)0
-rw-r--r--libre/icecat-l10n/region.properties32
5 files changed, 62 insertions, 12 deletions
diff --git a/libre/icecat-i18n/.gitignore b/libre/icecat-l10n/.gitignore
index 3987fdafb..3987fdafb 100644
--- a/libre/icecat-i18n/.gitignore
+++ b/libre/icecat-l10n/.gitignore
diff --git a/libre/icecat-i18n/Makefile b/libre/icecat-l10n/Makefile
index d1aaf7bff..d1aaf7bff 100644
--- a/libre/icecat-i18n/Makefile
+++ b/libre/icecat-l10n/Makefile
diff --git a/libre/icecat-i18n/PKGBUILD b/libre/icecat-l10n/PKGBUILD
index aebc6cef0..74c1a00f2 100644
--- a/libre/icecat-i18n/PKGBUILD
+++ b/libre/icecat-l10n/PKGBUILD
@@ -105,11 +105,11 @@ _langpacks=(
pkgbase=icecat-i18n
pkgname=(
$(for lang in ${_langpacks[@]}
- do echo icecat-i18n-$lang | tr A-Z a-z
+ do echo icecat-l10n-$lang | tr A-Z a-z
done)
)
-_pkgver=14.0
-pkgver=14.0
+_pkgver=17.0.1
+pkgver=17.0.1
pkgrel=1
pkgdesc='Language packs for GNUzilla IceCat.'
arch=(
@@ -120,35 +120,53 @@ license=(
)
url=http://www.gnu.org/software/gnuzilla/
depends=(
- ${pkgbase%-i18n}=$pkgver
-)
-source=(
- $(for lang in ${_langpacks[@]}
- do echo http://ftp.gnu.org/gnu/gnuzilla/lang/$pkgver/$lang.xpi
- done)
+ ${pkgbase%-l10n}=$pkgver
)
+source=('region.properties')
+ for lang in ${_langpacks[@]}
+ do
+ source+=(http://ftp.gnu.org/gnu/gnuzilla/lang/$pkgver/$lang.xpi)
+ done
+
noextract=(
$(for lang in ${_langpacks[@]}
do echo $lang.xpi
done)
)
+
+_path=/usr/lib/${pkgbase%-l10n}/extensions/
+
build() {
+ mv $srcdir/usr/lib/${pkgbase%-i18n} $srcdir/usr/lib/${pkgbase%-l10n}
+
+ cd $srcdir$_path
+
+ for i in ${_langpacks[@]}
+ do
+ unzip -q langpack-$i@firefox.mozilla.org.xpi -d $i
+ rm langpack-$i@firefox.mozilla.org.xpi
+ install -Dm644 $srcdir/region.properties $i/chrome/$i/locale/browser-region
+ zip -q -r langpack-$i@firefox.mozilla.org.xpi $i
+ done
+
cd $srcdir
}
-_path=/usr/lib/${pkgbase%-i18n}/extensions/
-
for lang in ${_langpacks[@]}
do
eval "
-package_icecat-i18n-$(echo $lang | tr A-Z a-z) () {
+package_icecat-l10n-$(echo $lang | tr A-Z a-z) () {
+ replaces=(icedove-l10n-$(echo $lang | tr A-Z a-z))
+ conflicts=(icedove-l10n-$(echo $lang | tr A-Z a-z))
+ provides=(icedove-l10n-$(echo $lang | tr A-Z a-z))
install -Dm644 $srcdir/$lang.xpi \"\${pkgdir}\"'${_path}langpack-${lang}@firefox.mozilla.org.xpi'
}
"
done
sha512sums=(
+ 20064992e694b3fed0f75bee9d54af3427c01ae0048e0ec220895e58127954ceb4db47ea85627e86d9ea6614ce3feaf30f652d87f7c2e896fc00774a757a640a
765390ba04d88b4b56cebab007f9f593e33c54fe3cd8dbbafdb48171db68e23cd4e1c3d8360f2ef641a537e27f1d6db1aa8a0bdade854d3151359ecab6676af9
2b21f849299e7185163ce99e91aa612f64094cdf792bb855eb8836be940c0ef1cdfd33da080a793def714874810b269373f0c80830f42919f967417356efb86f
86a79b1a785c967d56bb492a1c5867c42ac00832813a72027cc0a51dd940c1020dc7c911109efd9eb4ef1a9d996eea6382cd0a03a6a53e3347f909a28a3a943d
diff --git a/libre/icecat-i18n/PKGBUILD.in b/libre/icecat-l10n/PKGBUILD.in
index 90c901e31..90c901e31 100644
--- a/libre/icecat-i18n/PKGBUILD.in
+++ b/libre/icecat-l10n/PKGBUILD.in
diff --git a/libre/icecat-l10n/region.properties b/libre/icecat-l10n/region.properties
new file mode 100644
index 000000000..4399d8db7
--- /dev/null
+++ b/libre/icecat-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