wok-next rev 13893

Add firefox-langpak-it (thanks ernia)
author Richard Dunbar <mojo@slitaz.org>
date Fri Jan 18 00:51:04 2013 +0000 (2013-01-18)
parents 75fa75301766
children 7e002bedebe8
files firefox-langpack-it/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/firefox-langpack-it/receipt	Fri Jan 18 00:51:04 2013 +0000
     1.3 @@ -0,0 +1,29 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="firefox-langpack-it"
     1.7 +VERSION="10.0.2"
     1.8 +CATEGORY="network"
     1.9 +SHORT_DESC="Italian Language Package for firefox"
    1.10 +MAINTAINER="monghitri@aruba.it"
    1.11 +DEPENDS="firefox"
    1.12 +WEB_SITE="http://www.mozilla.com"
    1.13 +LANG=$(echo $PACKAGE | cut -d'-' -f3 | tr '_' '-')
    1.14 +LANG_DIR="langpack-$LANG@firefox.mozilla.org"
    1.15 +TARBALL="$PACKAGE-$VERSION.zip"
    1.16 +WGET_URL="ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/$VERSION/linux-i686/xpi/$LANG.xpi"
    1.17 +
    1.18 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.19 +genpkg_rules()
    1.20 +{
    1.21 +	EXTDIR="$fs/usr/lib/firefox/extensions/$LANG_DIR"
    1.22 +	mkdir -p $EXTDIR
    1.23 +	cp -a $src/* $EXTDIR
    1.24 +}
    1.25 +
    1.26 +post_install()
    1.27 +{
    1.28 +	echo ""
    1.29 +	echo "Use the code below to change locale of firefox in shell:"
    1.30 +	echo "sed -i '/pref/s/en-US/$LANG/' /etc/firefox/pref/firefox-l10n.js"
    1.31 +	echo ""
    1.32 +}