wok-6.x annotate firefox-langpack-fr/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 | b05fd237ee34 |
children | 4fe0fd2676eb |
rev | line source |
---|---|
lufeng369@7487 | 1 # SliTaz package receipt. |
lufeng369@7487 | 2 |
lufeng369@7487 | 3 PACKAGE="firefox-langpack-fr" |
slaxemulator@7493 | 4 VERSION="3.6.12" |
lufeng369@7487 | 5 CATEGORY="network" |
lufeng369@7487 | 6 SHORT_DESC="France Language Package for firefox" |
lufeng369@7487 | 7 MAINTAINER="lufeng369@gmail.com" |
lufeng369@7487 | 8 DEPENDS="firefox" |
lufeng369@7487 | 9 BUILD_DEPENDS="unzip" |
lufeng369@7487 | 10 WEB_SITE="http://www.mozilla.com" |
lufeng369@7487 | 11 TARBALL="fr.xpi" |
lufeng369@7488 | 12 Path=langpack-fr@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@7487 | 15 # Rules to gen a SliTaz package suitable for Tazpkg. |
lufeng369@7487 | 16 genpkg_rules() |
lufeng369@7487 | 17 { |
lufeng369@7487 | 18 |
lufeng369@7487 | 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 |
slaxemulator@7493 | 27 |
lufeng369@7487 | 28 } |
slaxemulator@7493 | 29 |
lufeng369@7487 | 30 post_install() |
lufeng369@7487 | 31 { |
slaxemulator@7493 | 32 sed -i '/pref/s/en-US/fr/' /etc/firefox/pref/firefox-l10n.js |
slaxemulator@7493 | 33 RealPath=/usr/lib/firefox-*/extensions/ |
slaxemulator@7493 | 34 mv -f /var/$Path $RealPath |
lufeng369@7487 | 35 } |
slaxemulator@7493 | 36 |
lufeng369@7487 | 37 post_remove() |
lufeng369@7487 | 38 { |
slaxemulator@7493 | 39 sed -i '/pref/s/fr/en-US/' /etc/firefox/pref/firefox-l10n.js |
slaxemulator@7493 | 40 rm -rf "/usr/lib/firefox-*/extensions/$Path" |
lufeng369@7487 | 41 } |