wok-current view thunderbird-langpack-de/receipt @ rev 6981

Up: thunderbird to 3.1.6.
author Christopher Rogers <slaxemulator@gmail.com>
date Thu Oct 28 15:22:07 2010 +0000 (2010-10-28)
parents 6f3bf60ef747
children a371908710d9
line source
1 # SliTaz package receipt.
3 PACKAGE="thunderbird-langpack-de"
4 VERSION="3.1.6"
5 CATEGORY="network"
6 SHORT_DESC="locale for mozilla thunderbird"
7 MAINTAINER="domcox@slitaz.org"
8 DEPENDS="thunderbird"
9 SOURCE="thunderbird"
10 WEB_SITE="http://www.mozillamessaging.com/"
12 # Rules to configure and make the package.
13 compile_rules()
14 {
15 cd $WOK/$PACKAGE
16 LANG=`echo $PACKAGE | cut -d'-' -f3 | tr '_' '-'`
17 # Get xpi
18 WGET_URL="ftp://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/$VERSION/linux-i686/xpi/$LANG.xpi"
19 if [ -e $LANG.xpi ]; then
20 echo "Using current langpack ($LANG.xpi)"
21 else
22 echo "Downloading langpack ($LANG.xpi)"
23 wget $WGET_URL
24 fi
25 # Uncompress
26 echo -n "Uncompressing langpack ($LANG.xpi)"
27 LANG_DIR="langpack-$LANG@thunderbird.mozilla.org"
28 mkdir -p $LANG_DIR && unzip -oq $LANG.xpi -d $LANG_DIR
29 status
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 EXTDIR="$fs/usr/lib/$SOURCE-$VERSION/extensions"
36 mkdir -p $EXTDIR
37 cp -a $LANG_DIR $EXTDIR
38 }