wok-stable view firefox-langpack-zh_TW/receipt @ rev 7491
firefox-langpack-zh_TW:Traditional Chinese language-package for firefox
author | fireflyoo <lufeng369@gmail.com> |
---|---|
date | Fri Dec 03 21:07:24 2010 +0800 (2010-12-03) |
parents | |
children | dab62c0f979a |
line source
1 # SliTaz package receipt.
3 PACKAGE="firefox-langpack-zh_TW"
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-TW.xpi"
12 Path="langpack-${TARBALL%.xpi}@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/${TARBALL%.xpi}/" /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/${TARBALL%.xpi}/en-US/" /etc/firefox/pref/firefox-l10n.js
31 rm -rf "/usr/lib/firefox-*/extensions/$Path"
32 }