wok-next annotate thunderbird-langpack-fr/receipt @ rev 8506
Up: libtaz 0.0.5
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Sat Feb 12 02:53:48 2011 +0100 (2011-02-12) |
parents | 73919ebf2a75 |
children | aa280c1e0e31 |
rev | line source |
---|---|
domcox@6081 | 1 # SliTaz package receipt. |
domcox@6081 | 2 |
domcox@6081 | 3 PACKAGE="thunderbird-langpack-fr" |
slaxemulator@7586 | 4 VERSION="3.1.7" |
domcox@6081 | 5 CATEGORY="network" |
domcox@6081 | 6 SHORT_DESC="locale for mozilla thunderbird" |
domcox@6081 | 7 MAINTAINER="domcox@slitaz.org" |
domcox@6081 | 8 DEPENDS="thunderbird" |
domcox@6081 | 9 SOURCE="thunderbird" |
pascal@6409 | 10 WEB_SITE="http://www.mozillamessaging.com/" |
slaxemulator@7528 | 11 LANG=`echo $PACKAGE | cut -d'-' -f3 | tr '_' '-'` |
slaxemulator@7528 | 12 LANG_DIR="langpack-$LANG@thunderbird.mozilla.org" |
slaxemulator@7528 | 13 TARBALL="$LANG.xpi" |
slaxemulator@7528 | 14 URL="ftp://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/$VERSION/linux-i686/xpi/$TARBALL" |
domcox@6081 | 15 |
domcox@6081 | 16 # Rules to configure and make the package. |
domcox@6081 | 17 compile_rules() |
domcox@6081 | 18 { |
domcox@6081 | 19 cd $WOK/$PACKAGE |
slaxemulator@7528 | 20 |
domcox@6081 | 21 # Get xpi |
slaxemulator@7528 | 22 if [ -f $SOURCES_REPOSITORY/$PACKAGE-$VERSION.xpi ]; then |
slaxemulator@7528 | 23 echo "Using current langpack ($PACKAGE-$VERSION.xpi)" |
domcox@6081 | 24 else |
slaxemulator@7528 | 25 echo "Downloading langpack ($PACKAGE-$VERSION.xpi)" |
slaxemulator@7528 | 26 wget -O $SOURCES_REPOSITORY/$PACKAGE-$VERSION.xpi $URL |
domcox@6081 | 27 fi |
domcox@6081 | 28 # Uncompress |
slaxemulator@7528 | 29 echo -n "Uncompressing langpack ($PACKAGE-$VERSION.xpi)" |
slaxemulator@7528 | 30 mkdir -p $LANG_DIR && unzip -oq $SOURCES_REPOSITORY/$PACKAGE-$VERSION.xpi -d $LANG_DIR |
domcox@6081 | 31 status |
domcox@6081 | 32 } |
domcox@6081 | 33 |
domcox@6081 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
domcox@6081 | 35 genpkg_rules() |
domcox@6081 | 36 { |
domcox@6081 | 37 EXTDIR="$fs/usr/lib/$SOURCE-$VERSION/extensions" |
domcox@6081 | 38 mkdir -p $EXTDIR |
domcox@6081 | 39 cp -a $LANG_DIR $EXTDIR |
domcox@6081 | 40 } |