# HG changeset patch # User Antoine Bodin # Date 1297634276 -3600 # Node ID aa280c1e0e31e2e82938ffaa736309443c7baf8d # Parent 1491a4c9c43532d0c56ead99791c36c4ab0236e0 imported patch get/thunderbird-langpack-fr diff -r 1491a4c9c435 -r aa280c1e0e31 thunderbird-langpack-fr/receipt --- a/thunderbird-langpack-fr/receipt Sun Feb 13 22:57:56 2011 +0100 +++ b/thunderbird-langpack-fr/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 }