wok rev 7382

add:firefox-langpack-zh_CN
author fireflyoo <lufeng369@gmail.com>
date Fri Nov 26 15:17:29 2010 +0000 (2010-11-26)
parents b6a45e3d8aab
children 1f626bdba7c5
files firefox-langpack-zh_CN/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/firefox-langpack-zh_CN/receipt	Fri Nov 26 15:17:29 2010 +0000
     1.3 @@ -0,0 +1,32 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="firefox-langpack-zh_CN"
     1.7 +VERSION="3.6"
     1.8 +CATEGORY="network"
     1.9 +SHORT_DESC="Chinese Language Package for firefox"
    1.10 +MAINTAINER="lufeng369@gmail.com"
    1.11 +DEPENDS="firefox"
    1.12 +BUILD_DEPENDS="unzip"
    1.13 +WEB_SITE="http://www.mozilla.com"
    1.14 +TARBALL="zh-CN.xpi"
    1.15 +Path=langpack-zh-CN@firefox.mozilla.org
    1.16 +URL="http://releases.mozilla.org/pub/mozilla.org/firefox/releases/latest-$VERSION/linux-i686/xpi/$TARBALL"
    1.17 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.18 +genpkg_rules()
    1.19 +{
    1.20 +
    1.21 +        mkdir -p $fs/var/$Path
    1.22 +        wget $URL -P /tmp
    1.23 +        unzip /tmp/$TARBALL -d $fs/var/$Path
    1.24 +}
    1.25 +post_install()
    1.26 +{
    1.27 +sed -i '/pref/s/en-US/zh-CN/' /etc/firefox/pref/firefox-l10n.js
    1.28 +RealPath=/usr/lib/firefox-*/extensions/    
    1.29 +mv -f /var/$Path $RealPath
    1.30 +}
    1.31 +post_remove()
    1.32 +{
    1.33 +sed -i '/pref/s/zh-CN/en-US/' /etc/firefox/pref/firefox-l10n.js
    1.34 +rm -rf "/usr/lib/firefox-*/extensions/$Path"
    1.35 +}
    1.36 \ No newline at end of file