wok diff 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 diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/thunderbird-langpack-es_ES/receipt Tue Sep 07 19:50:00 2010 +0200 1.3 @@ -0,0 +1,41 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="thunderbird-langpack-es_ES" 1.7 +VERSION="3.1.2" 1.8 +CATEGORY="network" 1.9 +SHORT_DESC="locale for mozilla thunderbird" 1.10 +MAINTAINER="domcox@slitaz.org" 1.11 +DEPENDS="thunderbird" 1.12 +SOURCE="thunderbird" 1.13 +WEB_SITE="www.mozillamessaging.com" 1.14 + 1.15 + 1.16 +# Rules to configure and make the package. 1.17 +compile_rules() 1.18 +{ 1.19 + cd $WOK/$PACKAGE 1.20 + LANG=`echo $PACKAGE | cut -d'-' -f3 | tr '_' '-'` 1.21 +#LANG="es-ES" 1.22 +echo "LANG=$LANG" 1.23 + # Get xpi 1.24 + WGET_URL="ftp://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/$VERSION/linux-i686/xpi/$LANG.xpi" 1.25 + if [ -e $LANG.xpi ]; then 1.26 + echo "Using current langpack ($LANG.xpi)" 1.27 + else 1.28 + echo "Downloading langpack ($LANG.xpi)" 1.29 + wget $WGET_URL 1.30 + fi 1.31 + # Uncompress 1.32 + echo -n "Uncompressing langpack ($LANG.xpi)" 1.33 + LANG_DIR="langpack-$LANG@thunderbird.mozilla.org" 1.34 + mkdir -p $LANG_DIR && unzip -oq $LANG.xpi -d $LANG_DIR 1.35 + status 1.36 +} 1.37 + 1.38 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.39 +genpkg_rules() 1.40 +{ 1.41 + EXTDIR="$fs/usr/lib/$SOURCE-$VERSION/extensions" 1.42 + mkdir -p $EXTDIR 1.43 + cp -a $LANG_DIR $EXTDIR 1.44 +}