wok rev 7487
firefox-lang-fr:new language package for France
author | fireflyoo <lufeng369@gmail.com> |
---|---|
date | Fri Dec 03 19:01:31 2010 +0800 (2010-12-03) |
parents | 265433163a80 |
children | b05fd237ee34 |
files | firefox-langpack-fr/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/firefox-langpack-fr/receipt Fri Dec 03 19:01:31 2010 +0800 1.3 @@ -0,0 +1,32 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="firefox-langpack-fr" 1.7 +VERSION="3.6" 1.8 +CATEGORY="network" 1.9 +SHORT_DESC="France Language Package for firefox" 1.10 +MAINTAINER="lufeng369@gmail.com" 1.11 +DEPENDS="firefox" 1.12 +BUILD_DEPENDS="unzip" 1.13 +WEB_SITE="http://www.mozilla.com" 1.14 +TARBALL="fr.xpi" 1.15 +Path=langpack-zh-CN@firefox.mozilla.org 1.16 +URL="http://releases.mozilla.org/pub/mozilla.org/firefox/releases/latest-$VERSION/linux-i686/xpi/$TARBALL" 1.17 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.18 +genpkg_rules() 1.19 +{ 1.20 + 1.21 + mkdir -p $fs/var/$Path 1.22 + wget $URL -P /tmp 1.23 + unzip /tmp/$TARBALL -d $fs/var/$Path 1.24 +} 1.25 +post_install() 1.26 +{ 1.27 +sed -i '/pref/s/en-US/fr/' /etc/firefox/pref/firefox-l10n.js 1.28 +RealPath=/usr/lib/firefox-*/extensions/ 1.29 +mv -f /var/$Path $RealPath 1.30 +} 1.31 +post_remove() 1.32 +{ 1.33 +sed -i '/pref/s/fr/en-US/' /etc/firefox/pref/firefox-l10n.js 1.34 +rm -rf "/usr/lib/firefox-*/extensions/$Path" 1.35 +}