wok-stable view 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
line source
1 # SliTaz package receipt.
3 PACKAGE="firefox-langpack-fr"
4 VERSION="3.6.12"
5 CATEGORY="network"
6 SHORT_DESC="France 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="fr.xpi"
12 Path=langpack-fr@firefox.mozilla.org
13 URL="http://releases.mozilla.org/pub/mozilla.org/firefox/releases/$VERSION/linux-i686/xpi/$TARBALL"
15 # Rules to gen a SliTaz package suitable for Tazpkg.
16 genpkg_rules()
17 {
19 mkdir -p $fs/var/$Path
20 if [ -f $SOURCES_REPOSITORY/$PACKAGE-$VERSION.xpi ]; then
21 unzip $SOURCES_REPOSITORY/$PACKAGE-$VERSION.xpi -d $fs/var/$Path
22 else
23 [ -L /usr/bin/wget ] && tazpkg get-install wget --forced
24 wget -O $SOURCES_REPOSITORY/$PACKAGE-$VERSION.xpi $URL
25 unzip $SOURCES_REPOSITORY/$PACKAGE-$VERSION.xpi -d $fs/var/$Path
26 fi
28 }
30 post_install()
31 {
32 sed -i '/pref/s/en-US/fr/' /etc/firefox/pref/firefox-l10n.js
33 RealPath=/usr/lib/firefox-*/extensions/
34 mv -f /var/$Path $RealPath
35 }
37 post_remove()
38 {
39 sed -i '/pref/s/fr/en-US/' /etc/firefox/pref/firefox-l10n.js
40 rm -rf "/usr/lib/firefox-*/extensions/$Path"
41 }