# HG changeset patch # User Christopher Rogers # Date 1291583850 0 # Node ID a371908710d991fee92292d0cd91bc4aa0396a21 # Parent 0a0fb13a2e643d6d81d0f524b1972a459b3238b2 Fixed thunderbird-langpkg-de to save de.xpi as thunderbird-langpkg-de-VERSION.xpi in src repo folder. diff -r 0a0fb13a2e64 -r a371908710d9 thunderbird-langpack-de/receipt --- a/thunderbird-langpack-de/receipt Sun Dec 05 19:48:24 2010 +0000 +++ b/thunderbird-langpack-de/receipt Sun Dec 05 21:17:30 2010 +0000 @@ -8,24 +8,26 @@ DEPENDS="thunderbird" SOURCE="thunderbird" WEB_SITE="http://www.mozillamessaging.com/" +LANG=`echo $PACKAGE | cut -d'-' -f3 | tr '_' '-'` +LANG_DIR="langpack-$LANG@thunderbird.mozilla.org" +TARBALL="$LANG.xpi" +URL="ftp://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/$VERSION/linux-i686/xpi/$TARBALL" # Rules to configure and make the package. compile_rules() { cd $WOK/$PACKAGE - LANG=`echo $PACKAGE | cut -d'-' -f3 | tr '_' '-'` + # Get xpi - WGET_URL="ftp://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/$VERSION/linux-i686/xpi/$LANG.xpi" - if [ -e $LANG.xpi ]; then - echo "Using current langpack ($LANG.xpi)" + if [ -f $SOURCES_REPOSITORY/$PACKAGE-$VERSION.xpi ]; then + echo "Using current langpack ($PACKAGE-$VERSION.xpi)" else - echo "Downloading langpack ($LANG.xpi)" - wget $WGET_URL + echo "Downloading langpack ($PACKAGE-$VERSION.xpi)" + wget -O $SOURCES_REPOSITORY/$PACKAGE-$VERSION.xpi $URL fi # Uncompress - echo -n "Uncompressing langpack ($LANG.xpi)" - LANG_DIR="langpack-$LANG@thunderbird.mozilla.org" - mkdir -p $LANG_DIR && unzip -oq $LANG.xpi -d $LANG_DIR + echo -n "Uncompressing langpack ($PACKAGE-$VERSION.xpi)" + mkdir -p $LANG_DIR && unzip -oq $SOURCES_REPOSITORY/$PACKAGE-$VERSION.xpi -d $LANG_DIR status }