# Template file for 'firefox-i18n'
pkgname=firefox-i18n
version=15.0
revision=1
homepage="http://www.mozilla.com/"
short_desc="Firefox language packs"
maintainer="Juan RP <xtraeme@gmail.com>"
license="MPL-2.1"
long_desc="
 This package includes the language packs for the firefox browser."

noarch=yes
noextract=yes
create_wrksrc=yes
create_srcdir=yes

_LANG_PACKS="af ak ar ast be bg bn-BD bn-IN br bs 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 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"

for f in ${_LANG_PACKS}; do
	distfiles="${distfiles} ${MOZILLA_SITE}/firefox/releases/${version}/linux-i686/xpi/$f.xpi"
done

checksum="
[encoded data, 5200 characters]
"

do_install() {
	for f in ${_LANG_PACKS}; do

		vinstall ${XBPS_SRCDISTDIR}/${pkgname}-${version}/$f.xpi 644 \
			usr/lib/firefox/extensions langpack-${f}@firefox.mozilla.org.xpi
	done
}
