wok-next diff thunderbird-langpack-pt_BR/receipt @ rev 6081

Add: Thunderbird langpacks (de en_GB es fr pt_BR pt_PT ru)
author Dominique Corbex <domcox@slitaz.org>
date Sun Aug 29 11:07:11 2010 +0200 (2010-08-29)
parents
children 753cd764de9d
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/thunderbird-langpack-pt_BR/receipt	Sun Aug 29 11:07:11 2010 +0200
     1.3 @@ -0,0 +1,39 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="thunderbird-langpack-fr"
     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`
    1.21 +	# Get xpi
    1.22 +	WGET_URL="ftp://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/$VERSION/linux-i686/xpi/$LANG.xpi"
    1.23 +	if [ -e $LANG.xpi ]; then
    1.24 +		echo "Using current langpack ($LANG.xpi)"
    1.25 +	else
    1.26 +		echo "Downloading langpack ($LANG.xpi)"
    1.27 +		wget $WGET_URL
    1.28 +	fi
    1.29 +	# Uncompress
    1.30 +	echo -n "Uncompressing langpack ($LANG.xpi)"
    1.31 +	LANG_DIR="langpack-$LANG@thunderbird.mozilla.org"
    1.32 +	mkdir -p $LANG_DIR && unzip -oq $LANG.xpi -d $LANG_DIR
    1.33 +	status
    1.34 +}
    1.35 +
    1.36 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.37 +genpkg_rules()
    1.38 +{
    1.39 +	EXTDIR="$fs/usr/lib/$SOURCE-$VERSION/extensions"
    1.40 +	mkdir -p $EXTDIR
    1.41 +	cp -a $LANG_DIR $EXTDIR
    1.42 +}