wok-4.x view thunderbird-langpack-ru/receipt @ rev 7672

Up: drupal to 6.20.
author Christopher Rogers <slaxemulator@gmail.com>
date Thu Dec 16 16:11:50 2010 +0000 (2010-12-16)
parents 73919ebf2a75
children 37738b3ee08f
line source
1 # SliTaz package receipt.
3 PACKAGE="thunderbird-langpack-ru"
4 VERSION="3.1.7"
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/"
11 LANG=`echo $PACKAGE | cut -d'-' -f3 | tr '_' '-'`
12 LANG_DIR="langpack-$LANG@thunderbird.mozilla.org"
13 TARBALL="$LANG.xpi"
14 URL="ftp://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/$VERSION/linux-i686/xpi/$TARBALL"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $WOK/$PACKAGE
21 # Get xpi
22 if [ -f $SOURCES_REPOSITORY/$PACKAGE-$VERSION.xpi ]; then
23 echo "Using current langpack ($PACKAGE-$VERSION.xpi)"
24 else
25 echo "Downloading langpack ($PACKAGE-$VERSION.xpi)"
26 wget -O $SOURCES_REPOSITORY/$PACKAGE-$VERSION.xpi $URL
27 fi
28 # Uncompress
29 echo -n "Uncompressing langpack ($PACKAGE-$VERSION.xpi)"
30 mkdir -p $LANG_DIR && unzip -oq $SOURCES_REPOSITORY/$PACKAGE-$VERSION.xpi -d $LANG_DIR
31 status
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 EXTDIR="$fs/usr/lib/$SOURCE-$VERSION/extensions"
38 mkdir -p $EXTDIR
39 cp -a $LANG_DIR $EXTDIR
40 }