wok rev 9638

Fixed firefox-langpack-pt-BR to be like the other langpack receipts.
author Christopher Rogers <slaxemulator@gmail.com>
date Tue Apr 26 17:57:44 2011 +0000 (2011-04-26)
parents 50647c0be30b
children 2010b1abc210
files firefox-langpack-pt-BR/receipt
line diff
     1.1 --- a/firefox-langpack-pt-BR/receipt	Tue Apr 26 23:34:43 2011 +0200
     1.2 +++ b/firefox-langpack-pt-BR/receipt	Tue Apr 26 17:57:44 2011 +0000
     1.3 @@ -10,21 +10,21 @@
     1.4  LANG_DIR="langpack-$LANG@firefox.mozilla.org"
     1.5  TARBALL="$LANG.xpi"
     1.6  WEB_SITE="http://www.mozilla.org"
     1.7 -WGET_URL="http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/$VERSION/linux-i686/xpi/$TARBALL"
     1.8 +WGET_URL="http://releases.mozilla.org/pub/mozilla.org/firefox/releases/$VERSION/linux-i686/xpi/$TARBALL"
     1.9  	
    1.10  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.11  genpkg_rules()
    1.12  {
    1.13 -	DEST="$fs/usr/lib/firefox-$VERSION/extensions/$LANG_DIR"
    1.14 -	mkdir -p $DEST
    1.15 -	cp -a $src/* $DEST
    1.16 +	EXTDIR="$fs/usr/lib/firefox-$VERSION/extensions/$LANG_DIR"
    1.17 +	mkdir -p $EXTDIR
    1.18 +	cp -a $src/* $EXTDIR
    1.19  }
    1.20  
    1.21  # Pre and Post install commands for tazpkg
    1.22  post_install()
    1.23  {
    1.24 -	local pref
    1.25 -	pref="$1/etc/firefox/pref/firefox.js"
    1.26 -	echo "Processing post install commands..."
    1.27 -	grep "matchOS" $pref > /dev/null || echo "pref(\"intl.locale.matchOS\", true);" >> $pref
    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  }