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