wok rev 8578
imported patch get/thunderbird-langpack-pt_PT
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Sun Feb 13 22:57:56 2011 +0100 (2011-02-13) |
parents | ba30b36c923f |
children | 37738b3ee08f |
files | thunderbird-langpack-pt_PT/receipt |
line diff
1.1 --- a/thunderbird-langpack-pt_PT/receipt Sun Feb 13 22:57:56 2011 +0100 1.2 +++ b/thunderbird-langpack-pt_PT/receipt Sun Feb 13 22:57:56 2011 +0100 1.3 @@ -6,35 +6,22 @@ 1.4 SHORT_DESC="locale for mozilla thunderbird" 1.5 MAINTAINER="domcox@slitaz.org" 1.6 DEPENDS="thunderbird" 1.7 -SOURCE="thunderbird" 1.8 WEB_SITE="http://www.mozillamessaging.com/" 1.9 LANG=`echo $PACKAGE | cut -d'-' -f3 | tr '_' '-'` 1.10 LANG_DIR="langpack-$LANG@thunderbird.mozilla.org" 1.11 TARBALL="$LANG.xpi" 1.12 -URL="ftp://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/$VERSION/linux-i686/xpi/$TARBALL" 1.13 +WGET_URL="ftp://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/$VERSION/linux-i686/xpi/$TARBALL" 1.14 1.15 # Rules to configure and make the package. 1.16 compile_rules() 1.17 { 1.18 - cd $WOK/$PACKAGE 1.19 - 1.20 - # Get xpi 1.21 - if [ -f $SOURCES_REPOSITORY/$PACKAGE-$VERSION.xpi ]; then 1.22 - echo "Using current langpack ($PACKAGE-$VERSION.xpi)" 1.23 - else 1.24 - echo "Downloading langpack ($PACKAGE-$VERSION.xpi)" 1.25 - wget -O $SOURCES_REPOSITORY/$PACKAGE-$VERSION.xpi $URL 1.26 - fi 1.27 - # Uncompress 1.28 - echo -n "Uncompressing langpack ($PACKAGE-$VERSION.xpi)" 1.29 - mkdir -p $LANG_DIR && unzip -oq $SOURCES_REPOSITORY/$PACKAGE-$VERSION.xpi -d $LANG_DIR 1.30 - status 1.31 + : 1.32 } 1.33 1.34 # Rules to gen a SliTaz package suitable for Tazpkg. 1.35 genpkg_rules() 1.36 { 1.37 - EXTDIR="$fs/usr/lib/$SOURCE-$VERSION/extensions" 1.38 + EXTDIR="$fs/usr/lib/$SOURCE-$VERSION/extensions/$LANG_DIR" 1.39 mkdir -p $EXTDIR 1.40 - cp -a $LANG_DIR $EXTDIR 1.41 + cp -a $src/* $EXTDIR 1.42 }