summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libre/icecat-i18n/PKGBUILD492
1 files changed, 106 insertions, 386 deletions
diff --git a/libre/icecat-i18n/PKGBUILD b/libre/icecat-i18n/PKGBUILD
index fe0ce88e9..ad25dd934 100644
--- a/libre/icecat-i18n/PKGBUILD
+++ b/libre/icecat-i18n/PKGBUILD
@@ -2,401 +2,121 @@
# Contributor: Figue <ffigue@gmail.com>
# Based on firefox-i18n package
+# wget http://gnuzilla.gnu.org/download/langpacks/${pkgver}/
+# echo $(egrep -o '[^>".]+\.xpi' index.html | sort -u | sed 's/\.xpi//')
+_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=('icecat-i18n-af' 'icecat-i18n-ar' 'icecat-i18n-as' 'icecat-i18n-ast' 'icecat-i18n-be' 'icecat-i18n-bg' 'icecat-i18n-bn-bd' 'icecat-i18n-bn-in' 'icecat-i18n-ca' 'icecat-i18n-cs' 'icecat-i18n-cy' 'icecat-i18n-da' 'icecat-i18n-de' 'icecat-i18n-el' 'icecat-i18n-en-gb' 'icecat-i18n-eo' 'icecat-i18n-es-ar' 'icecat-i18n-es-cl' 'icecat-i18n-es-es' 'icecat-i18n-es-mx' 'icecat-i18n-et' 'icecat-i18n-eu' 'icecat-i18n-fa' 'icecat-i18n-fi' 'icecat-i18n-fr' 'icecat-i18n-fy-nl' 'icecat-i18n-ga-ie' 'icecat-i18n-gd' 'icecat-i18n-gl' 'icecat-i18n-gu-in' 'icecat-i18n-he' 'icecat-i18n-hi-in' 'icecat-i18n-hr' 'icecat-i18n-hu' 'icecat-i18n-id' 'icecat-i18n-is' 'icecat-i18n-it' 'icecat-i18n-ja' 'icecat-i18n-ka' 'icecat-i18n-kk' 'icecat-i18n-kn' 'icecat-i18n-ko' 'icecat-i18n-ku' 'icecat-i18n-lt' 'icecat-i18n-lv' 'icecat-i18n-mk' 'icecat-i18n-ml' 'icecat-i18n-mr' 'icecat-i18n-nb-no' 'icecat-i18n-nl' 'icecat-i18n-nn-no' 'icecat-i18n-oc' 'icecat-i18n-or' 'icecat-i18n-pa-in' 'icecat-i18n-pl' 'icecat-i18n-pt-br' 'icecat-i18n-pt-pt' 'icecat-i18n-rm' 'icecat-i18n-ro' 'icecat-i18n-ru' 'icecat-i18n-si' 'icecat-i18n-sk' 'icecat-i18n-sl' 'icecat-i18n-sq' 'icecat-i18n-sr' 'icecat-i18n-sv-se' 'icecat-i18n-ta' 'icecat-i18n-ta-lk' 'icecat-i18n-te' 'icecat-i18n-th' 'icecat-i18n-tr' 'icecat-i18n-uk' 'icecat-i18n-vi' 'icecat-i18n-zh-cn' 'icecat-i18n-zh-tw')
-pkgver=4.0.1
+pkgname=($(for lang in ${_langpacks[@]}
+ do echo icecat-i18n-$lang | tr A-Z a-z
+ done))
+pkgver=5.0
pkgrel=1
pkgdesc="Language packs for IceCat"
arch=('any')
license=('MPL')
url="http://www.gnu.org/software/gnuzilla/"
depends=("icecat=${pkgver}")
-source=(http://gnuzilla.gnu.org/download/langpacks/$pkgver/{af,ar,as,ast,be,bg,bn-BD,bn-IN,ca,cs,cy,da,de,el,en-GB,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,id,is,it,ja,ka,kk,kn,ko,ku,lt,lv,mk,ml,mr,nb-NO,nl,nn-NO,oc,or,pa-IN,pl,pt-BR,pt-PT,rm,ro,ru,si,sk,sl,sq,sr,sv-SE,ta,ta-LK,te,th,tr,uk,vi,zh-CN,zh-TW}.xpi)
+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}"
}
-helper_install() {
- lang=${1/.xpi/}
- msg "Building ${1}"
- bsdtar xf ${1} || return 1
- sed -i "s|jar:chrome/${lang}.jar|jar:${lang}.jar|" chrome.manifest || return 1
- install -D -m 644 chrome/${lang}.jar "${pkgdir}/usr/lib/icecat/chrome/${lang}.jar" || return 1
- install -D -m 644 chrome.manifest "${pkgdir}/usr/lib/icecat/chrome/${lang}.manifest" || return 1
-}
-
-package_icecat-i18n-af() {
- helper_install af.xpi
-}
-
-package_icecat-i18n-ar() {
- helper_install ar.xpi
-}
-
-package_icecat-i18n-as() {
- helper_install as.xpi
-}
-
-package_icecat-i18n-ast() {
- helper_install ast.xpi
-}
-
-package_icecat-i18n-be() {
- helper_install be.xpi
-}
-
-package_icecat-i18n-bg() {
- helper_install bg.xpi
-}
-
-package_icecat-i18n-bn-bd() {
- helper_install bn-BD.xpi
-}
-
-package_icecat-i18n-bn-in() {
- helper_install bn-IN.xpi
-}
-
-package_icecat-i18n-ca() {
- helper_install ca.xpi
-}
-
-package_icecat-i18n-cs() {
- helper_install cs.xpi
-}
-
-package_icecat-i18n-cy() {
- helper_install cy.xpi
-}
-
-package_icecat-i18n-da() {
- helper_install da.xpi
-}
-
-package_icecat-i18n-de() {
- helper_install de.xpi
-}
-
-package_icecat-i18n-el() {
- helper_install el.xpi
-}
-
-package_icecat-i18n-en-gb() {
- helper_install en-GB.xpi
-}
-
-package_icecat-i18n-eo() {
- helper_install eo.xpi
-}
-
-package_icecat-i18n-es-ar() {
- helper_install es-AR.xpi
-}
-
-package_icecat-i18n-es-cl() {
- helper_install es-CL.xpi
-}
-
-package_icecat-i18n-es-es() {
- helper_install es-ES.xpi
-}
-
-package_icecat-i18n-es-mx() {
- helper_install es-MX.xpi
-}
-
-package_icecat-i18n-et() {
- helper_install et.xpi
-}
-
-package_icecat-i18n-eu() {
- helper_install eu.xpi
-}
-
-package_icecat-i18n-fa() {
- helper_install fa.xpi
-}
-
-package_icecat-i18n-fi() {
- helper_install fi.xpi
-}
-
-package_icecat-i18n-fr() {
- helper_install fr.xpi
-}
-
-package_icecat-i18n-fy-nl() {
- helper_install fy-NL.xpi
-}
-
-package_icecat-i18n-ga-ie() {
- helper_install ga-IE.xpi
-}
-
-package_icecat-i18n-gd() {
- helper_install gd.xpi
-}
-
-package_icecat-i18n-gl() {
- helper_install gl.xpi
-}
-
-package_icecat-i18n-gu-in() {
- helper_install gu-IN.xpi
-}
-
-package_icecat-i18n-he() {
- helper_install he.xpi
-}
-
-package_icecat-i18n-hi-in() {
- helper_install hi-IN.xpi
-}
-
-package_icecat-i18n-hr() {
- helper_install hr.xpi
-}
-
-package_icecat-i18n-hu() {
- helper_install hu.xpi
-}
-
-package_icecat-i18n-id() {
- helper_install id.xpi
-}
-
-package_icecat-i18n-is() {
- helper_install is.xpi
-}
-
-package_icecat-i18n-it() {
- helper_install it.xpi
-}
-
-package_icecat-i18n-ja() {
- helper_install ja.xpi
-}
-
-package_icecat-i18n-ka() {
- helper_install ka.xpi
-}
-
-package_icecat-i18n-kk() {
- helper_install kk.xpi
-}
-
-package_icecat-i18n-kn() {
- helper_install kn.xpi
-}
-
-package_icecat-i18n-ko() {
- helper_install ko.xpi
-}
-
-package_icecat-i18n-ku() {
- helper_install ku.xpi
-}
-
-package_icecat-i18n-lt() {
- helper_install lt.xpi
-}
-
-package_icecat-i18n-lv() {
- helper_install lv.xpi
-}
-
-package_icecat-i18n-mk() {
- helper_install mk.xpi
-}
-
-package_icecat-i18n-ml() {
- helper_install ml.xpi
-}
-
-package_icecat-i18n-mr() {
- helper_install mr.xpi
-}
-
-package_icecat-i18n-nb-no() {
- helper_install nb-NO.xpi
-}
-
-package_icecat-i18n-nl() {
- helper_install nl.xpi
-}
-
-package_icecat-i18n-nn-no() {
- helper_install nn-NO.xpi
-}
-
-package_icecat-i18n-oc() {
- helper_install oc.xpi
-}
-
-package_icecat-i18n-or() {
- helper_install or.xpi
-}
-
-package_icecat-i18n-pa-in() {
- helper_install pa-IN.xpi
-}
-
-package_icecat-i18n-pl() {
- helper_install pl.xpi
-}
-
-package_icecat-i18n-pt-br() {
- helper_install pt-BR.xpi
-}
-
-package_icecat-i18n-pt-pt() {
- helper_install pt-PT.xpi
-}
-
-package_icecat-i18n-rm() {
- helper_install rm.xpi
-}
-
-package_icecat-i18n-ro() {
- helper_install ro.xpi
-}
-
-package_icecat-i18n-ru() {
- helper_install ru.xpi
-}
-
-package_icecat-i18n-si() {
- helper_install si.xpi
-}
-
-package_icecat-i18n-sk() {
- helper_install sk.xpi
-}
-
-package_icecat-i18n-sl() {
- helper_install sl.xpi
-}
-
-package_icecat-i18n-sq() {
- helper_install sq.xpi
-}
-
-package_icecat-i18n-sr() {
- helper_install sr.xpi
-}
-
-package_icecat-i18n-sv-se() {
- helper_install sv-SE.xpi
-}
-
-package_icecat-i18n-ta() {
- helper_install ta.xpi
-}
-
-package_icecat-i18n-ta-lk() {
- helper_install ta-LK.xpi
-}
-
-package_icecat-i18n-te() {
- helper_install te.xpi
-}
-
-package_icecat-i18n-th() {
- helper_install th.xpi
-}
-
-package_icecat-i18n-tr() {
- helper_install tr.xpi
-}
-
-package_icecat-i18n-uk() {
- helper_install uk.xpi
-}
-
-package_icecat-i18n-vi() {
- helper_install vi.xpi
-}
-
-package_icecat-i18n-zh-cn() {
- helper_install zh-CN.xpi
-}
-
-package_icecat-i18n-zh-tw() {
- helper_install zh-TW.xpi
-}
-md5sums=('bc329dd9e8fee226eac9f0e9448fd4f3'
- '490f3ffae72c1ed9bed06586e301e9b0'
- '6d90e42d99b5c29537aa9177f9aa7e28'
- '8d70a32c273c285e5291e7877b352ae5'
- 'ac7f81d1e3ae43752ff9683954e2824d'
- '57e51cc60d7a1591ae5841723274fd3e'
- '0e4d68d634448f2d489a1324766e8b34'
- '7aafb67e6921c0c93f3cfec578fd9f31'
- 'd4244cf8f84e74c65b292530206391e5'
- '036996d5469fa7a0e6de57c68c5944d7'
- '53b0a6f1e381885e605748507acef788'
- '3248eeb7a871fbb8872a121dfb7ca919'
- '5b37a6bd3a15b74457359c74efbfd169'
- 'fac369754691a113f3c9f8c88a4a012a'
- '009f7e8b2cdb2a196c48d50435e6b72b'
- '860f197d38767c830557feef6b895b33'
- '748ae21adabaef7e52bc94855fd84a33'
- '8a4aef97929e32e6c9844f63eed0b485'
- '52a667e08b01cbe9747c723197a46540'
- '5245a68ee0d0ec8e24a02ed54212aa46'
- '646a3fb1435ed454efc3ccf577e07740'
- 'eb8e94480d73711827c509a2b4d2e662'
- '043d249074995285d9a36052217b9749'
- '6e7e435671ff8fae8005f5bd2f3923af'
- '552b075a52c63c5ed5e8d4806d845708'
- '5483b2fb336f50398660f6e03948fc28'
- '7ef6886607d9ee85aa13eba4212c561b'
- 'ca1af2844af82c8d8dd1452817b49770'
- '64478bd7cc33112787edbe6b8e995531'
- 'b70331334dce71bdada03b5bd173aa1b'
- '02bafd80997eb1178da66afb17a2ae91'
- 'bfc04e174fac798de0216a84a46d6ff7'
- '15b90532ab4dbbbfd9fe2006a8544ab5'
- 'bbb1b58bf492e567ec9f61485b54ca1b'
- '1de6b016519562aec9e827b618829db5'
- 'b864a2de6f0963449e49f643d201beb5'
- '32ac581c2ad1b81554fc778cf96a0496'
- '0f9f8c01fd73d5f27db950681f2017d6'
- 'aad74ba00f4f8813713e80e0675d4d8d'
- '18ed7eabc78f20c28330e5788d738e35'
- '4d9969d4c2f9d2cf441643a87bf39cc9'
- '1fdce5853d59e82bb3735ec231ed5293'
- '0c673f70ef382384fc2eefcc3465b61c'
- '8250b6505b62adf3ea0b2030e9fe90c4'
- '00cf2b73d324ff5ae8cfe6b80001ae63'
- 'cb221e57dab07142296909f0989e3c2c'
- '791724bf937c697ff480fe5e9d1e9347'
- '02d0d0415b977266276e0b0826b297d9'
- '803b246251d09fed792d37cdcd7d72c7'
- 'f15ecfb3296a670418651c560a072dd4'
- 'c4980ec2ce04b26443fbf37d6c35a153'
- '1568893645ba79d38b5e0fc5755a9285'
- 'f81e1b1f80139a52a98276e0579ceb5f'
- '5b549460ee73b178ec7128270406a3db'
- 'd9f84ff9ec99064cfeb1966e88147394'
- 'e6267db75f8741d038d535cdc6504807'
- '58a3f9640952aba203055a8f44bf1f1f'
- '4e318b28abda03ecb465bbab5f7089d3'
- 'ed56d3fd6cdb9e69b72b32aa63e73587'
- '0196a184af5d1dcc5ac959660c798b92'
- '5ee1ee1250cfcb87b805f044b19964d5'
- '3d4ca7b8fc648234cb7f0dcea76cd2dc'
- 'aedb239f247c05bea7105e86abdd26db'
- '81d171701bce0a4d879acd9c3d5f94f5'
- '67c402b52220ebab02ad6078d0def0ef'
- 'eb4ba4695a94a2d07972853e9fbf610a'
- '187de792dfffb2cc87754aa8b3c179b3'
- '9548ecf49a3228381c68cd7c0c3208c7'
- '79226a47211515b9e99a08d551fb3fe0'
- 'ea6fc42b8c4b0205a59d8be6abf58540'
- 'f4b38cc9b3c865071fa6ade4436095cb'
- 'd611a255d1a5b3c0e47fcf3e12ba30a5'
- 'e557ea072669d2d2c7c2f2eb62e38e4d'
- 'd2e5670188be4358d4126c3d594dcb4a'
- 'a28c459626e65ae4e597dbecb0b95def')
+_path="/usr/lib/icecat-5.0/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=('709e73f3e6fff4221e10a7c6513df607'
+ '6087d3abe606dfd0f43a426b5de58931'
+ '986aaf488d8a9cc17bfc59163e8a3b41'
+ '1c4ce81ce9cd5ecce717ac8ef2a8943c'
+ 'db8c62ab5b0b3e489fb0b24fd18798b7'
+ '2c0ae00cd48d0e679245906fb4ffe21e'
+ 'a9a0eaca7b41c0c9e454d471e9868694'
+ '1221cc439990b6c37dc7793ad560c6d4'
+ '7e20ad6a0189f8e9f3067a4063a7534c'
+ 'e7c317be23f31399086a52a0b0df8ba2'
+ '2b3c0455c8e210da0cf3ef13fd935f67'
+ 'eb389bdbcf33c30cf48a6e027a009729'
+ '76445069ffb58126ab705fbddf095b6a'
+ '3cd2c5062181b1a441e96476b9c73d9d'
+ '456701170145c4f904bb0ed725b745e1'
+ 'ce9402c41495cb5690b6b96bd9661824'
+ '9f946d27ef2a298808fcbc159f1c56ef'
+ 'b1308ceb65b8a3346fab7c454ef2966e'
+ '06e7800fc32df63df2bb951f1b105ee0'
+ 'bb08e9c66867a14d554e27015e42ee76'
+ '5097c617081fe6c2d30036b90080ae2b'
+ 'f4a439b3bb21c2ef8348fa8f0b1f197c'
+ '6486e799b0592545955adafcb8038d4e'
+ '47beaaf6edc8e6de00e2e231f562608d'
+ '53a0d0272341f7151be706a61398b25c'
+ 'bb0df19f12507cdf7d1711fc62e9ebe9'
+ 'ed3d142a0025fd30762874ba03d01d7e'
+ '27c80b130b1519387cbee2f649968f06'
+ '90343d46bedbb1469765eb4d716ce4a9'
+ 'e58339275254f9ffc3760dbb861ffdfe'
+ 'dc48194af779db1fcca0b04ab3c0364f'
+ '19df3b0263a546a33a520ec6a90f46b4'
+ '51732b57590772660fe572be50f63588'
+ 'a63081ab55a146e166b475018d14dd14'
+ '698748403c10ba95a15f242a73fa5687'
+ '1fbc1601bf48ca820307ea086a3d59eb'
+ '4e1880d97ac398447a62e5e0d0a923c9'
+ 'fa7b9acd77a77f386f65e42a57ccb0fc'
+ 'e9623cbf67c98a073c55f589b92ed2b9'
+ '4020a1bd7b1f500729596786afc15f99'
+ '1ac05a652a08e0c36c63b5e094a006f1'
+ '6bad249c8537a7a4ccc193653a6f1b6f'
+ '042f7b99ce4826fe20910c2e7b79ebd4'
+ '26eeb498590e7c4f825756c622370b2d'
+ '1058ade4e5e63413116cd54e761d3b05'
+ '2d8402db4418efb23028b3eb1ef5e7bb'
+ '2e02ae8679ee04676a4ec77ae91a475e'
+ 'fe605c9b1012459c0cf4801ddbe57ec7'
+ 'd48f4b40fc533666027e69453bc572c0'
+ 'd213716fdbb963793d798c275f02feb5'
+ '9a0a08a78fc3a1806d1f6ad37e7d88ff'
+ '1db8acd50d0650c640f10fe6a9ea12dd'
+ 'a1ee77c675c064828b5b483be47bb448'
+ '1470d2721ec5c11288efec330a593dec'
+ '5a963a28a24394a31ff4bf99b3ffe7c5'
+ '9ef1f8f4a6dd7f209a5e163791f6b708'
+ '05ffecf8c3a670a1d8dcf4b9b46cd0a9'
+ '9ce866f2d94bd44da2cc1c0c69879edd'
+ '4f41494491ee5382c5c982096f00a177'
+ '3affb0103d8ea19b1edbb9dd268ae71f'
+ 'ecb42165bd320a1120c72703ff7bb8e5'
+ '2f282455a1b42be166083710b416b981'
+ 'b3889054b878c204a08bca8cdd330bff'
+ '1daa1f53b18f8eab969558d11eca30fb'
+ '7270826065f8432928318d7d4b015a00'
+ '498cef7f3597b34ac305b2d2f189a301'
+ 'd44a74015ce8535c9ec6127a6a950a5c'
+ '125b4a5c7c5843e2e559d20c89fe2a97'
+ 'ebb1b789bfaf4c7b25ca47ec3213ef9d'
+ 'a196178fed6bd7048dabd05b484cabc4'
+ '86cfd6e7ab7c2dcf00ae295d8a0fbfe4'
+ 'dd0846bcd5656ae6cd8c9d8f47d9fa7c'
+ '7b4f30a813fedbbbf5518748d24bd12f'
+ '954434c7a9d408fb0ce277b10d25b498'
+ 'f1ef105424b3b1fcb7d823f7e5d76e1a'
+ 'c2a2827b2abc8804b11ae76a8e54a153'
+ '691eb723fb7c26a5f8a2cd56d1a645b3'
+ 'b4247bce2d0c8c159edc59c1a387d2d9'
+ '008e18e486e3574b5de7fb72de091784'
+ '034c580ef9283451f25dcd39e965c82a'
+ 'ae170b62d2a18c6b166732e7d2edbf3a'
+ 'f31fcb1fd5cea1cdda812f2b41bd02e9'
+ '0507178163a0242a0eb4200db4e58255')