wok-4.x annotate firefox-langpack-zh_CN/receipt @ 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 | |
children | dab62c0f979a |
rev | line source |
---|---|
lufeng369@7382 | 1 # SliTaz package receipt. |
lufeng369@7382 | 2 |
lufeng369@7382 | 3 PACKAGE="firefox-langpack-zh_CN" |
lufeng369@7382 | 4 VERSION="3.6" |
lufeng369@7382 | 5 CATEGORY="network" |
lufeng369@7382 | 6 SHORT_DESC="Chinese Language Package for firefox" |
lufeng369@7382 | 7 MAINTAINER="lufeng369@gmail.com" |
lufeng369@7382 | 8 DEPENDS="firefox" |
lufeng369@7382 | 9 BUILD_DEPENDS="unzip" |
lufeng369@7382 | 10 WEB_SITE="http://www.mozilla.com" |
lufeng369@7382 | 11 TARBALL="zh-CN.xpi" |
lufeng369@7382 | 12 Path=langpack-zh-CN@firefox.mozilla.org |
lufeng369@7382 | 13 URL="http://releases.mozilla.org/pub/mozilla.org/firefox/releases/latest-$VERSION/linux-i686/xpi/$TARBALL" |
lufeng369@7382 | 14 # Rules to gen a SliTaz package suitable for Tazpkg. |
lufeng369@7382 | 15 genpkg_rules() |
lufeng369@7382 | 16 { |
lufeng369@7382 | 17 |
lufeng369@7382 | 18 mkdir -p $fs/var/$Path |
lufeng369@7382 | 19 wget $URL -P /tmp |
lufeng369@7382 | 20 unzip /tmp/$TARBALL -d $fs/var/$Path |
lufeng369@7382 | 21 } |
lufeng369@7382 | 22 post_install() |
lufeng369@7382 | 23 { |
lufeng369@7382 | 24 sed -i '/pref/s/en-US/zh-CN/' /etc/firefox/pref/firefox-l10n.js |
lufeng369@7382 | 25 RealPath=/usr/lib/firefox-*/extensions/ |
lufeng369@7382 | 26 mv -f /var/$Path $RealPath |
lufeng369@7382 | 27 } |
lufeng369@7382 | 28 post_remove() |
lufeng369@7382 | 29 { |
lufeng369@7382 | 30 sed -i '/pref/s/zh-CN/en-US/' /etc/firefox/pref/firefox-l10n.js |
lufeng369@7382 | 31 rm -rf "/usr/lib/firefox-*/extensions/$Path" |
lufeng369@7382 | 32 } |