wok 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 | 686cda691eef |
children | c8dac3fc2047 |
files | firefox-langpack-fr/receipt firefox-langpack-zh_CN/receipt firefox-langpack-zh_TW/receipt |
line diff
1.1 --- a/firefox-langpack-fr/receipt Fri Dec 03 13:09:49 2010 +0800 1.2 +++ b/firefox-langpack-fr/receipt Fri Dec 03 02:41:55 2010 +0000 1.3 @@ -1,7 +1,7 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="firefox-langpack-fr" 1.7 -VERSION="3.6" 1.8 +VERSION="3.6.12" 1.9 CATEGORY="network" 1.10 SHORT_DESC="France Language Package for firefox" 1.11 MAINTAINER="lufeng369@gmail.com" 1.12 @@ -10,23 +10,32 @@ 1.13 WEB_SITE="http://www.mozilla.com" 1.14 TARBALL="fr.xpi" 1.15 Path=langpack-fr@firefox.mozilla.org 1.16 -URL="http://releases.mozilla.org/pub/mozilla.org/firefox/releases/latest-$VERSION/linux-i686/xpi/$TARBALL" 1.17 +URL="http://releases.mozilla.org/pub/mozilla.org/firefox/releases/$VERSION/linux-i686/xpi/$TARBALL" 1.18 + 1.19 # Rules to gen a SliTaz package suitable for Tazpkg. 1.20 genpkg_rules() 1.21 { 1.22 1.23 mkdir -p $fs/var/$Path 1.24 - wget $URL -P /tmp 1.25 - unzip /tmp/$TARBALL -d $fs/var/$Path 1.26 + if [ -f $SOURCES_REPOSITORY/$PACKAGE-$VERSION.xpi ]; then 1.27 + unzip $SOURCES_REPOSITORY/$PACKAGE-$VERSION.xpi -d $fs/var/$Path 1.28 + else 1.29 + [ -L /usr/bin/wget ] && tazpkg get-install wget --forced 1.30 + wget -O $SOURCES_REPOSITORY/$PACKAGE-$VERSION.xpi $URL 1.31 + unzip $SOURCES_REPOSITORY/$PACKAGE-$VERSION.xpi -d $fs/var/$Path 1.32 + fi 1.33 + 1.34 } 1.35 + 1.36 post_install() 1.37 { 1.38 -sed -i '/pref/s/en-US/fr/' /etc/firefox/pref/firefox-l10n.js 1.39 -RealPath=/usr/lib/firefox-*/extensions/ 1.40 -mv -f /var/$Path $RealPath 1.41 + sed -i '/pref/s/en-US/fr/' /etc/firefox/pref/firefox-l10n.js 1.42 + RealPath=/usr/lib/firefox-*/extensions/ 1.43 + mv -f /var/$Path $RealPath 1.44 } 1.45 + 1.46 post_remove() 1.47 { 1.48 -sed -i '/pref/s/fr/en-US/' /etc/firefox/pref/firefox-l10n.js 1.49 -rm -rf "/usr/lib/firefox-*/extensions/$Path" 1.50 + sed -i '/pref/s/fr/en-US/' /etc/firefox/pref/firefox-l10n.js 1.51 + rm -rf "/usr/lib/firefox-*/extensions/$Path" 1.52 }
2.1 --- a/firefox-langpack-zh_CN/receipt Fri Dec 03 13:09:49 2010 +0800 2.2 +++ b/firefox-langpack-zh_CN/receipt Fri Dec 03 02:41:55 2010 +0000 2.3 @@ -1,7 +1,7 @@ 2.4 # SliTaz package receipt. 2.5 2.6 PACKAGE="firefox-langpack-zh_CN" 2.7 -VERSION="3.6" 2.8 +VERSION="3.6.12" 2.9 CATEGORY="network" 2.10 SHORT_DESC="Chinese Language Package for firefox" 2.11 MAINTAINER="lufeng369@gmail.com" 2.12 @@ -10,23 +10,30 @@ 2.13 WEB_SITE="http://www.mozilla.com" 2.14 TARBALL="zh-CN.xpi" 2.15 Path=langpack-zh-CN@firefox.mozilla.org 2.16 -URL="http://releases.mozilla.org/pub/mozilla.org/firefox/releases/latest-$VERSION/linux-i686/xpi/$TARBALL" 2.17 +URL="http://releases.mozilla.org/pub/mozilla.org/firefox/releases/$VERSION/linux-i686/xpi/$TARBALL" 2.18 # Rules to gen a SliTaz package suitable for Tazpkg. 2.19 genpkg_rules() 2.20 { 2.21 2.22 mkdir -p $fs/var/$Path 2.23 - wget $URL -P /tmp 2.24 - unzip /tmp/$TARBALL -d $fs/var/$Path 2.25 + if [ -f $SOURCES_REPOSITORY/$PACKAGE-$VERSION.xpi ]; then 2.26 + unzip $SOURCES_REPOSITORY/$PACKAGE-$VERSION.xpi -d $fs/var/$Path 2.27 + else 2.28 + [ -L /usr/bin/wget ] && tazpkg get-install wget --forced 2.29 + wget -O $SOURCES_REPOSITORY/$PACKAGE-$VERSION.xpi $URL 2.30 + unzip $SOURCES_REPOSITORY/$PACKAGE-$VERSION.xpi -d $fs/var/$Path 2.31 + fi 2.32 } 2.33 + 2.34 post_install() 2.35 { 2.36 -sed -i '/pref/s/en-US/zh-CN/' /etc/firefox/pref/firefox-l10n.js 2.37 -RealPath=/usr/lib/firefox-*/extensions/ 2.38 -mv -f /var/$Path $RealPath 2.39 + sed -i '/pref/s/en-US/zh-CN/' /etc/firefox/pref/firefox-l10n.js 2.40 + RealPath=/usr/lib/firefox-*/extensions/ 2.41 + mv -f /var/$Path $RealPath 2.42 } 2.43 + 2.44 post_remove() 2.45 { 2.46 -sed -i '/pref/s/zh-CN/en-US/' /etc/firefox/pref/firefox-l10n.js 2.47 -rm -rf "/usr/lib/firefox-*/extensions/$Path" 2.48 + sed -i '/pref/s/zh-CN/en-US/' /etc/firefox/pref/firefox-l10n.js 2.49 + rm -rf "/usr/lib/firefox-*/extensions/$Path" 2.50 } 2.51 \ No newline at end of file
3.1 --- a/firefox-langpack-zh_TW/receipt Fri Dec 03 13:09:49 2010 +0800 3.2 +++ b/firefox-langpack-zh_TW/receipt Fri Dec 03 02:41:55 2010 +0000 3.3 @@ -10,23 +10,31 @@ 3.4 WEB_SITE="http://www.mozilla.com" 3.5 TARBALL="zh-TW.xpi" 3.6 Path="langpack-${TARBALL%.xpi}@firefox.mozilla.org" 3.7 -URL="http://releases.mozilla.org/pub/mozilla.org/firefox/releases/latest-$VERSION/linux-i686/xpi/$TARBALL" 3.8 +URL="http://releases.mozilla.org/pub/mozilla.org/firefox/releases/$VERSION/linux-i686/xpi/$TARBALL" 3.9 + 3.10 # Rules to gen a SliTaz package suitable for Tazpkg. 3.11 genpkg_rules() 3.12 { 3.13 3.14 mkdir -p $fs/var/$Path 3.15 - wget $URL -P /tmp 3.16 - unzip /tmp/$TARBALL -d $fs/var/$Path 3.17 + if [ -f $SOURCES_REPOSITORY/$PACKAGE-$VERSION.xpi ]; then 3.18 + unzip $SOURCES_REPOSITORY/$PACKAGE-$VERSION.xpi -d $fs/var/$Path 3.19 + else 3.20 + [ -L /usr/bin/wget ] && tazpkg get-install wget --forced 3.21 + wget -O $SOURCES_REPOSITORY/$PACKAGE-$VERSION.xpi $URL 3.22 + unzip $SOURCES_REPOSITORY/$PACKAGE-$VERSION.xpi -d $fs/var/$Path 3.23 + fi 3.24 } 3.25 + 3.26 post_install() 3.27 { 3.28 -sed -i "/pref/s/en-US/${TARBALL%.xpi}/" /etc/firefox/pref/firefox-l10n.js 3.29 -RealPath=/usr/lib/firefox-*/extensions/ 3.30 -mv -f /var/$Path $RealPath 3.31 + sed -i "/pref/s/en-US/${TARBALL%.xpi}/" /etc/firefox/pref/firefox-l10n.js 3.32 + RealPath=/usr/lib/firefox-*/extensions/ 3.33 + mv -f /var/$Path $RealPath 3.34 } 3.35 + 3.36 post_remove() 3.37 { 3.38 -sed -i "/pref/s/${TARBALL%.xpi}/en-US/" /etc/firefox/pref/firefox-l10n.js 3.39 -rm -rf "/usr/lib/firefox-*/extensions/$Path" 3.40 + sed -i "/pref/s/${TARBALL%.xpi}/en-US/" /etc/firefox/pref/firefox-l10n.js 3.41 + rm -rf "/usr/lib/firefox-*/extensions/$Path" 3.42 }