wok-4.x diff thunderbird-langpack-pt_BR/receipt @ rev 7528
Fixed all thunderbird-langpack to save sources into src repo folder.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sun Dec 05 23:19:23 2010 +0000 (2010-12-05) |
parents | 1fc6a2ed9274 |
children | 344b18002536 |
line diff
1.1 --- a/thunderbird-langpack-pt_BR/receipt Thu Oct 28 15:22:07 2010 +0000 1.2 +++ b/thunderbird-langpack-pt_BR/receipt Sun Dec 05 23:19:23 2010 +0000 1.3 @@ -8,24 +8,26 @@ 1.4 DEPENDS="thunderbird" 1.5 SOURCE="thunderbird" 1.6 WEB_SITE="http://www.mozillamessaging.com/" 1.7 +LANG=`echo $PACKAGE | cut -d'-' -f3 | tr '_' '-'` 1.8 +LANG_DIR="langpack-$LANG@thunderbird.mozilla.org" 1.9 +TARBALL="$LANG.xpi" 1.10 +URL="ftp://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/$VERSION/linux-i686/xpi/$TARBALL" 1.11 1.12 # Rules to configure and make the package. 1.13 compile_rules() 1.14 { 1.15 cd $WOK/$PACKAGE 1.16 - LANG=`echo $PACKAGE | cut -d'-' -f3 | tr '_' '-'` 1.17 + 1.18 # Get xpi 1.19 - WGET_URL="ftp://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/$VERSION/linux-i686/xpi/$LANG.xpi" 1.20 - if [ -e $LANG.xpi ]; then 1.21 - echo "Using current langpack ($LANG.xpi)" 1.22 + if [ -f $SOURCES_REPOSITORY/$PACKAGE-$VERSION.xpi ]; then 1.23 + echo "Using current langpack ($PACKAGE-$VERSION.xpi)" 1.24 else 1.25 - echo "Downloading langpack ($LANG.xpi)" 1.26 - wget $WGET_URL 1.27 + echo "Downloading langpack ($PACKAGE-$VERSION.xpi)" 1.28 + wget -O $SOURCES_REPOSITORY/$PACKAGE-$VERSION.xpi $URL 1.29 fi 1.30 # Uncompress 1.31 - echo -n "Uncompressing langpack ($LANG.xpi)" 1.32 - LANG_DIR="langpack-$LANG@thunderbird.mozilla.org" 1.33 - mkdir -p $LANG_DIR && unzip -oq $LANG.xpi -d $LANG_DIR 1.34 + echo -n "Uncompressing langpack ($PACKAGE-$VERSION.xpi)" 1.35 + mkdir -p $LANG_DIR && unzip -oq $SOURCES_REPOSITORY/$PACKAGE-$VERSION.xpi -d $LANG_DIR 1.36 status 1.37 } 1.38