wok-6.x view firefox-langpack-zh_CN/receipt @ rev 7522
Add mdk3. WLAN penetration tool.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sun Dec 05 10:34:34 2010 +0000 (2010-12-05) |
parents | dab62c0f979a |
children | 0192b7b7169c |
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 BUILD_DEPENDS="unzip"
10 WEB_SITE="http://www.mozilla.com"
11 TARBALL="zh-CN.xpi"
12 Path=langpack-zh-CN@firefox.mozilla.org
13 URL="http://releases.mozilla.org/pub/mozilla.org/firefox/releases/$VERSION/linux-i686/xpi/$TARBALL"
14 # Rules to gen a SliTaz package suitable for Tazpkg.
15 genpkg_rules()
16 {
18 mkdir -p $fs/var/$Path
19 if [ -f $SOURCES_REPOSITORY/$PACKAGE-$VERSION.xpi ]; then
20 unzip $SOURCES_REPOSITORY/$PACKAGE-$VERSION.xpi -d $fs/var/$Path
21 else
22 [ -L /usr/bin/wget ] && tazpkg get-install wget --forced
23 wget -O $SOURCES_REPOSITORY/$PACKAGE-$VERSION.xpi $URL
24 unzip $SOURCES_REPOSITORY/$PACKAGE-$VERSION.xpi -d $fs/var/$Path
25 fi
26 }
28 post_install()
29 {
30 sed -i '/pref/s/en-US/zh-CN/' /etc/firefox/pref/firefox-l10n.js
31 RealPath=/usr/lib/firefox-*/extensions/
32 cp -af /var/$Path $RealPath
33 rm -rf /var/$Path
34 }
36 post_remove()
37 {
38 sed -i '/pref/s/zh-CN/en-US/' /etc/firefox/pref/firefox-l10n.js
39 rm -rf "/usr/lib/firefox-*/extensions/$Path"
40 }