wok-4.x annotate firefox-langpack-fr/receipt @ rev 9113
slitaz-doc: fix genpkg_rules
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Mar 05 11:34:20 2011 +0100 (2011-03-05) |
parents | d105f75f0dd6 |
children | c8159297fa54 |
rev | line source |
---|---|
lufeng369@7487 | 1 # SliTaz package receipt. |
lufeng369@7487 | 2 |
lufeng369@7487 | 3 PACKAGE="firefox-langpack-fr" |
slaxemulator@9094 | 4 VERSION="3.6.15" |
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 WEB_SITE="http://www.mozilla.com" |
slaxemulator@7527 | 10 LANG=`echo $PACKAGE | cut -d'-' -f3 | tr '_' '-'` |
slaxemulator@7581 | 11 LANG_DIR="langpack-$LANG@firefox.mozilla.org" |
slaxemulator@7527 | 12 TARBALL="$LANG.xpi" |
gokhlayeh@8553 | 13 WGET_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 { |
gokhlayeh@8553 | 18 EXTDIR="$fs/usr/lib/firefox-$VERSION/extensions/$LANG_DIR" |
slaxemulator@7527 | 19 mkdir -p $EXTDIR |
gokhlayeh@8553 | 20 cp -a $src/* $EXTDIR |
lufeng369@7487 | 21 } |
slaxemulator@7493 | 22 |
lufeng369@7487 | 23 post_install() |
lufeng369@7487 | 24 { |
slaxemulator@7527 | 25 echo "" |
slaxemulator@7527 | 26 echo "Use the code below to change locale of firefox in shell:" |
slaxemulator@7527 | 27 echo "sed -i '/pref/s/en-US/$LANG/' /etc/firefox/pref/firefox-l10n.js" |
slaxemulator@7527 | 28 echo "" |
lufeng369@7487 | 29 } |
slaxemulator@7493 | 30 |