wok view thunderbird-langpack-pt_BR/receipt @ rev 8234

Up: get-LibreOffice (v1.1.9 for stable v3.3.0) - will need fix for next release as this contains fix for incorrect archive packaging.
author Ben Arnold <ben@seawolfsanctuary.com>
date Thu Jan 27 07:36:43 2011 +0000 (2011-01-27)
parents 73919ebf2a75
children ba30b36c923f
line source
1 # SliTaz package receipt.
3 PACKAGE="thunderbird-langpack-pt_BR"
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 }