wok view thunderbird-langpack-fr/receipt @ rev 8389

Up; tazpkg 4.2.5
author Antoine Bodin <gokhlayeh@slitaz.org>
date Fri Feb 04 19:46:14 2011 +0100 (2011-02-04)
parents 73919ebf2a75
children aa280c1e0e31
line source
1 # SliTaz package receipt.
3 PACKAGE="thunderbird-langpack-fr"
4 VERSION="3.1.7"
5 CATEGORY="network"
6 SHORT_DESC="locale for mozilla thunderbird"
7 MAINTAINER="domcox@slitaz.org"
8 DEPENDS="thunderbird"
9 SOURCE="thunderbird"
10 WEB_SITE="http://www.mozillamessaging.com/"
11 LANG=`echo $PACKAGE | cut -d'-' -f3 | tr '_' '-'`
12 LANG_DIR="langpack-$LANG@thunderbird.mozilla.org"
13 TARBALL="$LANG.xpi"
14 URL="ftp://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/$VERSION/linux-i686/xpi/$TARBALL"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $WOK/$PACKAGE
21 # Get xpi
22 if [ -f $SOURCES_REPOSITORY/$PACKAGE-$VERSION.xpi ]; then
23 echo "Using current langpack ($PACKAGE-$VERSION.xpi)"
24 else
25 echo "Downloading langpack ($PACKAGE-$VERSION.xpi)"
26 wget -O $SOURCES_REPOSITORY/$PACKAGE-$VERSION.xpi $URL
27 fi
28 # Uncompress
29 echo -n "Uncompressing langpack ($PACKAGE-$VERSION.xpi)"
30 mkdir -p $LANG_DIR && unzip -oq $SOURCES_REPOSITORY/$PACKAGE-$VERSION.xpi -d $LANG_DIR
31 status
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 EXTDIR="$fs/usr/lib/$SOURCE-$VERSION/extensions"
38 mkdir -p $EXTDIR
39 cp -a $LANG_DIR $EXTDIR
40 }