wok-6.x view firefox-langpack-zh_CN/receipt @ rev 7474
Up: virtualbox-ose to 3.2.12.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Wed Dec 01 19:07:06 2010 +0000 (2010-12-01) |
parents | |
children | dab62c0f979a |
line source
1 # SliTaz package receipt.
3 PACKAGE="firefox-langpack-zh_CN"
4 VERSION="3.6"
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/latest-$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 wget $URL -P /tmp
20 unzip /tmp/$TARBALL -d $fs/var/$Path
21 }
22 post_install()
23 {
24 sed -i '/pref/s/en-US/zh-CN/' /etc/firefox/pref/firefox-l10n.js
25 RealPath=/usr/lib/firefox-*/extensions/
26 mv -f /var/$Path $RealPath
27 }
28 post_remove()
29 {
30 sed -i '/pref/s/zh-CN/en-US/' /etc/firefox/pref/firefox-l10n.js
31 rm -rf "/usr/lib/firefox-*/extensions/$Path"
32 }