wok view firefox-langpack-fr/receipt @ rev 7499

Made all firefox-langpack copy files right. Looks like mv can't move folders even with -f option. Used a cp -af then rm -rf instead.
author Christopher Rogers <slaxemulator@gmail.com>
date Sat Dec 04 00:03:00 2010 +0000 (2010-12-04)
parents dab62c0f979a
children 0192b7b7169c
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 cp -af /var/$Path $RealPath
35 rm -rf /var/$Path
36 }
38 post_remove()
39 {
40 sed -i '/pref/s/fr/en-US/' /etc/firefox/pref/firefox-l10n.js
41 rm -rf "/usr/lib/firefox-*/extensions/$Path"
42 }