wok diff 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 diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/firefox-langpack-zh_TW/receipt	Fri Dec 03 21:07:24 2010 +0800
     1.3 @@ -0,0 +1,32 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="firefox-langpack-zh_TW"
     1.7 +VERSION="3.6"
     1.8 +CATEGORY="network"
     1.9 +SHORT_DESC="Chinese Language Package for firefox"
    1.10 +MAINTAINER="lufeng369@gmail.com"
    1.11 +DEPENDS="firefox"
    1.12 +BUILD_DEPENDS="unzip"
    1.13 +WEB_SITE="http://www.mozilla.com"
    1.14 +TARBALL="zh-TW.xpi"
    1.15 +Path="langpack-${TARBALL%.xpi}@firefox.mozilla.org"
    1.16 +URL="http://releases.mozilla.org/pub/mozilla.org/firefox/releases/latest-$VERSION/linux-i686/xpi/$TARBALL"
    1.17 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.18 +genpkg_rules()
    1.19 +{
    1.20 +
    1.21 +        mkdir -p $fs/var/$Path
    1.22 +        wget $URL -P /tmp
    1.23 +        unzip /tmp/$TARBALL -d $fs/var/$Path
    1.24 +}
    1.25 +post_install()
    1.26 +{
    1.27 +sed -i "/pref/s/en-US/${TARBALL%.xpi}/" /etc/firefox/pref/firefox-l10n.js
    1.28 +RealPath=/usr/lib/firefox-*/extensions/    
    1.29 +mv -f /var/$Path $RealPath
    1.30 +}
    1.31 +post_remove()
    1.32 +{
    1.33 +sed -i "/pref/s/${TARBALL%.xpi}/en-US/" /etc/firefox/pref/firefox-l10n.js
    1.34 +rm -rf "/usr/lib/firefox-*/extensions/$Path"
    1.35 +}