# HG changeset patch # User Christopher Rogers # Date 1291591163 0 # Node ID 73919ebf2a757bf2d8592122c1d98e90e61152e9 # Parent 0192b7b7169c38f2fa6c52be53409f171e59125a Fixed all thunderbird-langpack to save sources into src repo folder. diff -r 0192b7b7169c -r 73919ebf2a75 thunderbird-langpack-en_GB/receipt --- a/thunderbird-langpack-en_GB/receipt Sun Dec 05 21:45:02 2010 +0000 +++ b/thunderbird-langpack-en_GB/receipt Sun Dec 05 23:19:23 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 } @@ -35,4 +37,4 @@ EXTDIR="$fs/usr/lib/$SOURCE-$VERSION/extensions" mkdir -p $EXTDIR cp -a $LANG_DIR $EXTDIR -} +} \ No newline at end of file diff -r 0192b7b7169c -r 73919ebf2a75 thunderbird-langpack-es_ES/receipt --- a/thunderbird-langpack-es_ES/receipt Sun Dec 05 21:45:02 2010 +0000 +++ b/thunderbird-langpack-es_ES/receipt Sun Dec 05 23:19:23 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 } diff -r 0192b7b7169c -r 73919ebf2a75 thunderbird-langpack-fr/receipt --- a/thunderbird-langpack-fr/receipt Sun Dec 05 21:45:02 2010 +0000 +++ b/thunderbird-langpack-fr/receipt Sun Dec 05 23:19:23 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 } diff -r 0192b7b7169c -r 73919ebf2a75 thunderbird-langpack-pt_BR/receipt --- a/thunderbird-langpack-pt_BR/receipt Sun Dec 05 21:45:02 2010 +0000 +++ b/thunderbird-langpack-pt_BR/receipt Sun Dec 05 23:19:23 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 } diff -r 0192b7b7169c -r 73919ebf2a75 thunderbird-langpack-pt_PT/receipt --- a/thunderbird-langpack-pt_PT/receipt Sun Dec 05 21:45:02 2010 +0000 +++ b/thunderbird-langpack-pt_PT/receipt Sun Dec 05 23:19:23 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 } diff -r 0192b7b7169c -r 73919ebf2a75 thunderbird-langpack-ru/receipt --- a/thunderbird-langpack-ru/receipt Sun Dec 05 21:45:02 2010 +0000 +++ b/thunderbird-langpack-ru/receipt Sun Dec 05 23:19:23 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 }