# HG changeset patch # User Antoine Bodin # Date 1297634276 -3600 # Node ID ecee005b48bc767ea40ae54391cf69e4b611a888 # Parent 102de15fea8dec2f7ab8d1dca1d4391aa56b2837 imported patch get/thunderbird-langpack-de diff -r 102de15fea8d -r ecee005b48bc thunderbird-langpack-de/receipt --- a/thunderbird-langpack-de/receipt Sun Feb 13 22:57:56 2011 +0100 +++ b/thunderbird-langpack-de/receipt Sun Feb 13 22:57:56 2011 +0100 @@ -6,35 +6,22 @@ SHORT_DESC="locale for mozilla thunderbird" MAINTAINER="domcox@slitaz.org" 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" +WGET_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 - - # Get xpi - if [ -f $SOURCES_REPOSITORY/$PACKAGE-$VERSION.xpi ]; then - echo "Using current langpack ($PACKAGE-$VERSION.xpi)" - else - echo "Downloading langpack ($PACKAGE-$VERSION.xpi)" - wget -O $SOURCES_REPOSITORY/$PACKAGE-$VERSION.xpi $URL - fi - # Uncompress - echo -n "Uncompressing langpack ($PACKAGE-$VERSION.xpi)" - mkdir -p $LANG_DIR && unzip -oq $SOURCES_REPOSITORY/$PACKAGE-$VERSION.xpi -d $LANG_DIR - status + : } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - EXTDIR="$fs/usr/lib/$SOURCE-$VERSION/extensions" + EXTDIR="$fs/usr/lib/$SOURCE-$VERSION/extensions/$LANG_DIR" mkdir -p $EXTDIR - cp -a $LANG_DIR $EXTDIR + cp -a $src/* $EXTDIR }