diff options
Diffstat (limited to 'mozilla-testing/icecat-i18n')
-rw-r--r-- | mozilla-testing/icecat-i18n/.gitignore | 3 | ||||
-rw-r--r-- | mozilla-testing/icecat-i18n/Makefile | 33 | ||||
-rw-r--r-- | mozilla-testing/icecat-i18n/PKGBUILD | 127 |
3 files changed, 163 insertions, 0 deletions
diff --git a/mozilla-testing/icecat-i18n/.gitignore b/mozilla-testing/icecat-i18n/.gitignore new file mode 100644 index 000000000..3987fdafb --- /dev/null +++ b/mozilla-testing/icecat-i18n/.gitignore @@ -0,0 +1,3 @@ +index.html +langpacks.txt +*.xpi diff --git a/mozilla-testing/icecat-i18n/Makefile b/mozilla-testing/icecat-i18n/Makefile new file mode 100644 index 000000000..5dd818e62 --- /dev/null +++ b/mozilla-testing/icecat-i18n/Makefile @@ -0,0 +1,33 @@ +#!/usr/bin/make -f +# Use this script to update the PKGBUILD's list of langpacks. +# This script depends on: +# - coreutils +# - grep +# - pacman +# - sed +# - wget + +pkgver=9.0.1 + +default: PHONY all +all: PHONY PKGBUILD +.PRECIOUS: PKGBUILD + +index.html: Makefile + rm -f $@ + wget http://gnuzilla.gnu.org/download/langpacks/${pkgver}/ +langpacks.txt: index.html Makefile + egrep -o '[^>".]+\.xpi' $< | sort -u | sed 's/\.xpi//' > $@ +PKGBUILD: langpacks.txt Makefile + sed \ + -e 's/^pkgver=.*/pkgver=$(pkgver)/' \ + -e "s/_langpacks=.*/_langpacks=(`xargs echo < $<`)/" \ + -e '/md5sums/,$$d' \ + $@ > $@.$$$$ && \ + makepkg -g >> $@.$$$$ && \ + mv $@.$$$$ $@ + +clean: PHONY + rm -f index.html langpacks.txt *.xpi + +.PHONY: PHONY FORCE diff --git a/mozilla-testing/icecat-i18n/PKGBUILD b/mozilla-testing/icecat-i18n/PKGBUILD new file mode 100644 index 000000000..117d6a6bf --- /dev/null +++ b/mozilla-testing/icecat-i18n/PKGBUILD @@ -0,0 +1,127 @@ +# Maintainer: fauno <fauno@kiwwwi.com.ar> +# Contributor: Figue <ffigue@gmail.com> +# Based on firefox-i18n package + +# When updating to a newer upstream release: +# - Edit pkgver= in Makefile. +# - Run 'make'. It will take care of everything else for you. + +_langpacks=(af ak ar ast be bg bn-BD bn-IN br bs ca cs cy da de el en-GB en-US en-ZA eo es-AR es-CL es-ES es-MX et eu fa fi fr fy-NL ga-IE gd gl gu-IN he hi-IN hr hu hy-AM id is it ja kk kn ko ku lg 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-LK ta te th tr uk vi zh-CN zh-TW zu) + +pkgbase='icecat-i18n' +pkgname=($(for lang in ${_langpacks[@]} + do echo icecat-i18n-$lang | tr A-Z a-z + done)) +_pkgver=9.0 +pkgver=9.0.1 +pkgrel=1 +pkgdesc="Language packs for GNUzilla IceCat." +arch=('any') +license=('MPL') +url="http://www.gnu.org/software/gnuzilla/" +depends=("icecat=${pkgver}") +source=($(for lang in ${_langpacks[@]} + do echo http://gnuzilla.gnu.org/download/langpacks/$pkgver/$lang.xpi + done)) +noextract=($(for lang in ${_langpacks[@]} + do echo $lang.xpi + done)) + +build() { + cd "${srcdir}" +} + +_path="/usr/lib/icecat-$_pkgver/extensions/" + +for lang in ${_langpacks[@]} +do + eval " +package_icecat-i18n-$(echo $lang | tr A-Z a-z) () { + install -Dm644 '$srcdir/$lang.xpi' \"\${pkgdir}\"'${_path}langpack-$lang@firefox.mozilla.org.xpi' +} +" +done + +md5sums=('20e67c29a5e666c102b04a1e60b7f5a6' + 'f2bb72158cd9a9e26d682dcdff297e86' + '31daa3abbe40461f5292b6521ba45179' + '38ed2043b03f27bf9c6c30956c90f0af' + 'c263a1d5a3560c9a4538561ebe1bd332' + '9e19e7a56922d3df37844067d6c59a23' + '665ae571412f563f562c556cb6790bca' + '598725cd42bad8beec856525cd9d85c0' + '3e45f1097a1453ef6f3615d5826ff508' + '8388434818c995ae50b977d2e7f36996' + 'fa0afac9df234a977fd8da2905c0eda2' + '258d9b993065f3860c2f8d79ed86aa20' + 'dadeb5e0e03ac6c4a58104ae60c4214a' + '17edd78ea185761e3ac1ab69947aa483' + '6544c77cb37f97e1eb5c9180902f9767' + '579a5a4f3a98f47cba481242faece354' + '7a47d59e8a90b852a852d3d8182636e3' + '5e5f806e1f6f386dddd32136a9ea0c44' + '5985bb817858d6fffad0158df60b926b' + '9a9048af47cf7e1eff4a901287321cbf' + 'ecf628acf988b4efee254f5dd43ed839' + '0879552d267febf40ab51a25fd56e126' + 'd0054611a7cb17f265bbbb2145fa24fd' + '86dc6ac2c9fa2d891449dc0fee74925d' + '672433eda992ca42468ce736fb679233' + '7c1722a1a7b36259b170c601122a025b' + 'd315044c39fa8e3e404355a12a065cf2' + '2e498d9076b814887f0da334fda1e289' + 'b4c42b439c3db8e77e53f2c0e03197cb' + '1c356d82117d92d19474ab0a6c804c6b' + 'bb2a2bc43106be951ef51b62719f1213' + 'eda3b14c45b3dd6cc95f93b5fa0fd6cf' + '5521ad4ab8cdf1f8863fc0f454c02ee2' + '38f8d1533f7d1a6123eb80555e719f6f' + '14bb8cf18b6d24f103da376c5d8580b5' + '1d0ea799b72c59b9a6922d66c84e63d2' + '57a457aaa98d7d93667cfce913632976' + '90d589d5cd4d199f579e882c1b1e9287' + 'a0d354fb2b69828777642ef5abd0e963' + 'cce959f03a6357ee7a1d2efc6c6af309' + '4c9b695d540fb5289600a089e2972aca' + 'f4e3330139f500b0e37207bd00ad7e81' + 'e41ca6ea7716bec98956a4138bb091ce' + 'd59931f40b6e62dc2899eff46da2ac1e' + 'b21a2c345c8c74d8c4da80273aecd083' + '147357710c4712439c646f18b27bf4d0' + 'f90e382593e105ff697145338162c64e' + 'c6517c6002fe56527b7a773b8060f553' + '52bd84145281204c23b3c608a597f9e8' + 'e79089b54a3c8401afc7fbd48565d373' + 'ce49b2490566964e786e2f8c03560bb8' + 'ec943a3e4e531f8295f03131f2056053' + '99ea4eaae77a8c680949e673ef5ff1b7' + '74f4139ea78aee64c054468d5cf5528b' + 'efbd2c801479fbfd82d3da168e582a67' + '490f7390148623d6e6805aa04c8dc6f3' + '5b51ca012f369e61d505d4f05342b1a7' + '90a9774bfe34428b915bda7f5701e8d9' + '784924bb0615debf3eba37ea9edced69' + 'b2be9f59bdf8c2d0e35a4ab2e944f73e' + '5607205459f9db6d229235070e45e866' + '396231537b4e51b15fa8c781deb27988' + '96274f3f8a2bb807f79e896e28132f58' + 'a31bc07e9bd969665dcf6fe99ac89415' + '29bb94f65797299ca5355f0cb64142aa' + '9f0d68e0fa81beb81a3f905118f02c55' + 'af200de2fc6126e10e73d81dd05047ea' + '60b7717d3306e2fb18b22804719d0fd2' + '15c789baa59d27786d6d1d4c4a7a24ee' + '48841ff67fee9f3e1f1ee8ff485a1bbc' + '77af86e85548ec10486d23c6e2436d46' + '3e6bee3482370be47fd3128f468b806f' + '36d41a4885ebf5d04548a9c38e2d2e9c' + 'fea6e7c1c9f743e348ee5409e0182693' + 'ddea2e6de27762f1ad505e6c43a87349' + '759c0a37cc97aac128b52ec14bc86bb6' + 'bc2e3922c92c3b4fe49fae5ef46a7f7b' + '0a6e0092e9c052b8571ba09bd40b6d4a' + 'db1c3a4581fc893deba60322350593fb' + 'b79bdfa5ef8c65de1787fe1be6c48afa' + 'e4878942c64c3b6da87a84bd87918511' + '77e7b5d62449d5be99865c8ba43183b8' + '878ab3f21c1ae1fef8eb1198ee3e9af6') |