wok-current view firefox-langpack-fr/receipt @ rev 8358

Up: mercurial to 1.7.5.
author Christopher Rogers <slaxemulator@gmail.com>
date Thu Feb 03 15:58:22 2011 +0000 (2011-02-03)
parents b78f62881ef0
children 0360c9c8daaa
line source
1 # SliTaz package receipt.
3 PACKAGE="firefox-langpack-fr"
4 VERSION="3.6.13"
5 CATEGORY="network"
6 SHORT_DESC="France Language Package for firefox"
7 MAINTAINER="lufeng369@gmail.com"
8 DEPENDS="firefox"
9 WEB_SITE="http://www.mozilla.com"
10 SOURCE="firefox"
11 LANG=`echo $PACKAGE | cut -d'-' -f3 | tr '_' '-'`
12 LANG_DIR="langpack-$LANG@firefox.mozilla.org"
13 TARBALL="$LANG.xpi"
14 URL="http://releases.mozilla.org/pub/mozilla.org/firefox/releases/$VERSION/linux-i686/xpi/$TARBALL"
16 # Rules to gen a SliTaz package suitable for Tazpkg.
17 compile_rules()
18 {
19 cd $WOK/$PACKAGE
20 mkdir -p $LANG_DIR
22 # Get xpi
23 if [ -f $SOURCES_REPOSITORY/$PACKAGE-$VERSION.xpi ]; then
24 echo "Using current langpack ($PACKAGE-$VERSION.xpi)"
25 else
26 echo "Downloading langpack ($PACKAGE-$VERSION.xpi)"
27 wget -O $SOURCES_REPOSITORY/$PACKAGE-$VERSION.xpi $URL
28 fi
29 # Uncompress
30 echo -n "Uncompressing langpack ($PACKAGE-$VERSION.xpi)"
31 mkdir -p $LANG_DIR && unzip $SOURCES_REPOSITORY/$PACKAGE-$VERSION.xpi -d $LANG_DIR
32 status
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 EXTDIR="$fs/usr/lib/$SOURCE-$VERSION/extensions"
40 mkdir -p $EXTDIR
41 cp -a $LANG_DIR $EXTDIR
42 }
44 post_install()
45 {
46 echo ""
47 echo "Use the code below to change locale of firefox in shell:"
48 echo "sed -i '/pref/s/en-US/$LANG/' /etc/firefox/pref/firefox-l10n.js"
49 echo ""
50 }