wok-6.x view firefox-langpack-zh_CN/receipt @ rev 7559

Made sure that /usr/share folder is made in gnome-doc-utils-dev. Otherwise /usr/share/aclocal folder becomes /usr/share folder.
author Christopher Rogers <slaxemulator@gmail.com>
date Wed Dec 08 11:04:39 2010 +0000 (2010-12-08)
parents 4fe0fd2676eb
children b78f62881ef0
line source
1 # SliTaz package receipt.
3 PACKAGE="firefox-langpack-zh_CN"
4 VERSION="3.6.12"
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 }