wok-current view firefox-langpack-zh_TW/receipt @ rev 7580
Up: all firefox-langpack to 3.6.13.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Thu Dec 09 14:43:44 2010 +0000 (2010-12-09) |
parents | 0192b7b7169c |
children | cddbcd5b6530 |
line source
1 # SliTaz package receipt.
3 PACKAGE="firefox-langpack-zh_TW"
4 VERSION="3.6.13"
5 CATEGORY="network"
6 SHORT_DESC="Chinese 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@thunderbird.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 }