wok-current view thunderbird-langpack-es_ES/receipt @ rev 6131

thunderbird-langpack-en_ES : fix LANG
author Dominique Corbex <domcox@slitaz.org>
date Tue Sep 07 19:50:00 2010 +0200 (2010-09-07)
parents thunderbird-langpack-es-ES/receipt@30e6cb61e819
children f0dcc49d559b
line source
1 # SliTaz package receipt.
3 PACKAGE="thunderbird-langpack-es_ES"
4 VERSION="3.1.2"
5 CATEGORY="network"
6 SHORT_DESC="locale for mozilla thunderbird"
7 MAINTAINER="domcox@slitaz.org"
8 DEPENDS="thunderbird"
9 SOURCE="thunderbird"
10 WEB_SITE="www.mozillamessaging.com"
13 # Rules to configure and make the package.
14 compile_rules()
15 {
16 cd $WOK/$PACKAGE
17 LANG=`echo $PACKAGE | cut -d'-' -f3 | tr '_' '-'`
18 #LANG="es-ES"
19 echo "LANG=$LANG"
20 # Get xpi
21 WGET_URL="ftp://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/$VERSION/linux-i686/xpi/$LANG.xpi"
22 if [ -e $LANG.xpi ]; then
23 echo "Using current langpack ($LANG.xpi)"
24 else
25 echo "Downloading langpack ($LANG.xpi)"
26 wget $WGET_URL
27 fi
28 # Uncompress
29 echo -n "Uncompressing langpack ($LANG.xpi)"
30 LANG_DIR="langpack-$LANG@thunderbird.mozilla.org"
31 mkdir -p $LANG_DIR && unzip -oq $LANG.xpi -d $LANG_DIR
32 status
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 EXTDIR="$fs/usr/lib/$SOURCE-$VERSION/extensions"
39 mkdir -p $EXTDIR
40 cp -a $LANG_DIR $EXTDIR
41 }