wok-4.x view firefox-langpack-zh_CN/receipt @ rev 7493

Fixed all firefox-langpack to support downloading source to SOURCES_REPOSITORY. Also updated VERSION of all firefox-langpack to 3.6.12 so it can be updated with every new version of firefox.
author Christopher Rogers <slaxemulator@gmail.com>
date Fri Dec 03 02:41:55 2010 +0000 (2010-12-03)
parents 16277f2fa482
children 4fe0fd2676eb
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 mv -f /var/$Path $RealPath
33 }
35 post_remove()
36 {
37 sed -i '/pref/s/zh-CN/en-US/' /etc/firefox/pref/firefox-l10n.js
38 rm -rf "/usr/lib/firefox-*/extensions/$Path"
39 }