wok-current view firefox-langpack-zh_CN/receipt @ rev 8041
Fix: garcon need intltool to compile & depend on libgio
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Thu Jan 20 16:26:01 2011 +0100 (2011-01-20) |
parents | b78f62881ef0 |
children | fef2aa76609f |
line source
1 # SliTaz package receipt.
3 PACKAGE="firefox-langpack-zh_CN"
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@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 }