wok annotate firefox-langpack-zh_TW/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 | 9b77fe220ab2 |
children | eae5abfd796b |
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" |
slaxemulator@7493 | 13 URL="http://releases.mozilla.org/pub/mozilla.org/firefox/releases/$VERSION/linux-i686/xpi/$TARBALL" |
slaxemulator@7493 | 14 |
lufeng369@7491 | 15 # Rules to gen a SliTaz package suitable for Tazpkg. |
lufeng369@7491 | 16 genpkg_rules() |
lufeng369@7491 | 17 { |
lufeng369@7491 | 18 |
lufeng369@7491 | 19 mkdir -p $fs/var/$Path |
slaxemulator@7493 | 20 if [ -f $SOURCES_REPOSITORY/$PACKAGE-$VERSION.xpi ]; then |
slaxemulator@7493 | 21 unzip $SOURCES_REPOSITORY/$PACKAGE-$VERSION.xpi -d $fs/var/$Path |
slaxemulator@7493 | 22 else |
slaxemulator@7493 | 23 [ -L /usr/bin/wget ] && tazpkg get-install wget --forced |
slaxemulator@7493 | 24 wget -O $SOURCES_REPOSITORY/$PACKAGE-$VERSION.xpi $URL |
slaxemulator@7493 | 25 unzip $SOURCES_REPOSITORY/$PACKAGE-$VERSION.xpi -d $fs/var/$Path |
slaxemulator@7493 | 26 fi |
lufeng369@7491 | 27 } |
slaxemulator@7493 | 28 |
lufeng369@7491 | 29 post_install() |
lufeng369@7491 | 30 { |
slaxemulator@7493 | 31 sed -i "/pref/s/en-US/${TARBALL%.xpi}/" /etc/firefox/pref/firefox-l10n.js |
slaxemulator@7493 | 32 RealPath=/usr/lib/firefox-*/extensions/ |
slaxemulator@7493 | 33 mv -f /var/$Path $RealPath |
lufeng369@7491 | 34 } |
slaxemulator@7493 | 35 |
lufeng369@7491 | 36 post_remove() |
lufeng369@7491 | 37 { |
slaxemulator@7493 | 38 sed -i "/pref/s/${TARBALL%.xpi}/en-US/" /etc/firefox/pref/firefox-l10n.js |
slaxemulator@7493 | 39 rm -rf "/usr/lib/firefox-*/extensions/$Path" |
lufeng369@7491 | 40 } |