wok-next view thunderbird-langpack-pt_BR/receipt @ rev 8444
Up: guile to 1.8.8.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sun Feb 06 15:09:01 2011 +0000 (2011-02-06) |
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 }