wok view thunderbird-langpack-de/receipt @ rev 8547
imported patch get/dillo-hg
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Sun Feb 13 22:57:56 2011 +0100 (2011-02-13) |
parents | a371908710d9 |
children | ecee005b48bc |
line source
1 # SliTaz package receipt.
3 PACKAGE="thunderbird-langpack-de"
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 }