summaryrefslogtreecommitdiff
path: root/~emulatorman/iceweasel-l10n
diff options
context:
space:
mode:
Diffstat (limited to '~emulatorman/iceweasel-l10n')
-rw-r--r--~emulatorman/iceweasel-l10n/Makefile59
-rw-r--r--~emulatorman/iceweasel-l10n/PKGBUILD165
-rw-r--r--~emulatorman/iceweasel-l10n/region.properties32
3 files changed, 256 insertions, 0 deletions
diff --git a/~emulatorman/iceweasel-l10n/Makefile b/~emulatorman/iceweasel-l10n/Makefile
new file mode 100644
index 000000000..d596111f3
--- /dev/null
+++ b/~emulatorman/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/~emulatorman/iceweasel-l10n/PKGBUILD b/~emulatorman/iceweasel-l10n/PKGBUILD
new file mode 100644
index 000000000..8e0172208
--- /dev/null
+++ b/~emulatorman/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=18.0.1
+_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')
+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))
+ install -Dm644 \"\$srcdir$_path/langpack-$lang@iceweasel.mozilla.org.xpi\" \"\$pkgdir$_path/langpack-$lang@iceweasel.mozilla.org.xpi\"
+}
+"
+done
+
+md5sums=('428246ef3fb64103ff2cf5eaae2a92ca'
+ '5bff9acef5bdfd10fff5e3f36ff7c8bc'
+ '5ada703cfdc40e32c5c145380e979e1a'
+ 'e8b198ad4673ef12538f17e73529f9f8'
+ 'ba77a8937f6d0bc84ad789950ef42c70'
+ 'd940e1ccb7f501555500b17f5ea28e74'
+ '7325a84d999c3ea5f884cff15e1a4210'
+ 'f35c32e53f07774efa39bec386aa35c6'
+ '2d2a628958c5ad0f66077ae1703f61ba'
+ '458c5cee205f12ced09f8baab1605e11'
+ '7271c461eb02608d193208c5da94280e'
+ 'a505e69bf7cbb4caadcd5dfa67da1b78'
+ '0b0e10b39d115aedc1dfc0967068df95'
+ '09153faa23ca0a953aa22cc3989eba5e'
+ 'da9779d4a64f1bbab1195c9801fb678c'
+ '1815468f85d1eea9f018a72bb83889d3'
+ '6103d52fb61b4bb7e921870ff05c98af'
+ 'c3f0e46e2cfb68bf30363c92dcd9934d'
+ '5214d31f5cd5c077f09a0c275f936c25'
+ 'ad4f664710dfa896b969f25b824d7086'
+ 'ba2339dce1b84f0e7c0b77331572d6f5'
+ '28fb3e3e873cf5d03207e220eebf2ab0'
+ 'a6f6ea487f6577ddf4cb2ef10ed5e401'
+ '8143ba212c6ef5f1dfc311ce84861450'
+ '5a6db78ee5cd6b41c02b7f65e666a045'
+ '63869ca68431ee4c7d3769f4ef8b68e1'
+ '5e87285fa518d1a95a7a63a2587497b7'
+ '969c213166c8ecd7cc752c557a1c056d'
+ '0c47f76ca2fb3d747be170fd61fa36cb'
+ '01f67291435616996e968f41259b91bd'
+ 'f785b30e48ea4ee4af286325b020c545'
+ '58684c98cfc9d35d3d37f827268e72ac'
+ '2ec870106c72d0772f65f6a129547cb1'
+ '98d5cec52877790042830e8be41db1ca'
+ '654ee0ebb10cfbfe9b8b6540548f08e7'
+ '5a60a9cd96e0900a6cfbf37f7a68b715'
+ 'e6e276eb4b8b7c1eb5a3593b07b9a84a'
+ '0c788fece8760fb61509c0fe1ac7eff4'
+ '98cba049bae024ae7dc7426f6adf09d2'
+ '2d37f79f57d38008e64c9a52a05c91a4'
+ 'aeffb314945de717ef8a417653bcba3d'
+ '910b595a09b98f4eae1f4e6ddcae6ad5'
+ '9c5babdcd0ecbac8e487bed05cf5fe1a'
+ 'f94018f378dcd11d8d63ebbd4a595ca1'
+ 'bb4cc3cdb7995333babe6462d1aaef06'
+ '7a3d8e89625858fea797f33e7a426c25'
+ 'd1fbf396db41d77da0b3f9f2528c8c96'
+ 'cfa20a918d3adad42313fc2db86c63b8'
+ 'fa213ce6abfa19a6067e64c149e90b27'
+ '8c2a0ec2e38504c6f4657d9f00c3b4f0'
+ '3ff17d0759b40c4d308b8f28b698dba1'
+ '2fc7cc5a0d2d0794c7f08156fd65619d'
+ 'ed57c5f168e53cec827695ac4c18ec10'
+ 'c8b05f70068e8a8255d8f28f3171df5f'
+ 'adc1d1e78c6c42624b1e312be7dec90c'
+ '1f667156cd0b9e23effcbf8e26d01839'
+ 'dd112d0dbbcc45b38036694e5c82a6aa'
+ 'f37be06f19a3e6e60727466896bc6b65'
+ 'ec947261ee12d58c1a9998ea8136f744'
+ 'a3434e5da7b65559de7c4adcb14906d3'
+ 'b8984e5ab770cd3f0fd70cbc33ba1150'
+ 'a06634264be552d2e64189a761c7cc3c'
+ '417246fb8b66c806bdb903801f975627'
+ 'b9e367b2d4f96ea111ae46c22801b0bf'
+ '0a245b319c1dc40ef95a24ca5b0fca9d'
+ '7a08d4e4d7a10f12a4d79fe96e2c1f51'
+ 'f4d71f4e0a1794ccc25463cced9457d4'
+ '778089e056b6e8b1aaef1a4769153059'
+ 'c3855b0c99342acddca0a7e6d9dc126f'
+ '9bbd6dbf2df859fcbbf366e753dfcdd6'
+ '338ea8d0681d2df2409a2398c3ae3694'
+ 'e783a6e96d080413a60d1200fa0ac8a7'
+ 'd1af3e947fc8a8aca39bec88aaeda708'
+ 'e53c6a92a5533a706abb6abbe761508e'
+ '5d139a83f2b5e1625142f06a63147a28'
+ 'd671a0fd8a4f8eb08d4b9ab52372d667'
+ 'af9bf9f8a04dc898fad49083824fea6a'
+ '78184aa445a574ed6f57e926c7ab25c4'
+ '62f54d64f86204a45fc12557a4a76eb0'
+ '0ee43e97979aff7b7e2bb3d9e42a6e00'
+ '6fe3c2ed768593d942461f462fadd508'
+ '469ff3256c7322f15a71e0fd81e09f57'
+ '74bb076c39c409d9c795722d692561dc'
+ 'fc439b2e9dfff5111d0fea9fdeef30de'
+ '546c8cac927262e9166e01f4634a22cb'
+ '1009936f51fad91899c6f0144040f174'
+ '700322fdfe534fa47579895c87a93808'
+ 'fbdd5acbff2ef4d73665766d1f0cd815'
+ 'b3cc9c95ce6146453c8929213b04d9fe')
diff --git a/~emulatorman/iceweasel-l10n/region.properties b/~emulatorman/iceweasel-l10n/region.properties
new file mode 100644
index 000000000..4399d8db7
--- /dev/null
+++ b/~emulatorman/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