wok-stable annotate thunderbird-langpack-es_ES/receipt @ rev 8126
Back: emacs-pkg-po-mode
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Mon Jan 24 19:55:42 2011 +0100 (2011-01-24) |
parents | 73919ebf2a75 |
children | 1491a4c9c435 |
rev | line source |
---|---|
domcox@6129 | 1 # SliTaz package receipt. |
domcox@6129 | 2 |
domcox@6131 | 3 PACKAGE="thunderbird-langpack-es_ES" |
slaxemulator@7586 | 4 VERSION="3.1.7" |
domcox@6129 | 5 CATEGORY="network" |
domcox@6129 | 6 SHORT_DESC="locale for mozilla thunderbird" |
domcox@6129 | 7 MAINTAINER="domcox@slitaz.org" |
domcox@6129 | 8 DEPENDS="thunderbird" |
domcox@6129 | 9 SOURCE="thunderbird" |
pascal@6409 | 10 WEB_SITE="http://www.mozillamessaging.com/" |
slaxemulator@7528 | 11 LANG=`echo $PACKAGE | cut -d'-' -f3 | tr '_' '-'` |
slaxemulator@7528 | 12 LANG_DIR="langpack-$LANG@thunderbird.mozilla.org" |
slaxemulator@7528 | 13 TARBALL="$LANG.xpi" |
slaxemulator@7528 | 14 URL="ftp://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/$VERSION/linux-i686/xpi/$TARBALL" |
domcox@6129 | 15 |
domcox@6129 | 16 # Rules to configure and make the package. |
domcox@6129 | 17 compile_rules() |
domcox@6129 | 18 { |
domcox@6129 | 19 cd $WOK/$PACKAGE |
slaxemulator@7528 | 20 |
domcox@6129 | 21 # Get xpi |
slaxemulator@7528 | 22 if [ -f $SOURCES_REPOSITORY/$PACKAGE-$VERSION.xpi ]; then |
slaxemulator@7528 | 23 echo "Using current langpack ($PACKAGE-$VERSION.xpi)" |
domcox@6129 | 24 else |
slaxemulator@7528 | 25 echo "Downloading langpack ($PACKAGE-$VERSION.xpi)" |
slaxemulator@7528 | 26 wget -O $SOURCES_REPOSITORY/$PACKAGE-$VERSION.xpi $URL |
domcox@6129 | 27 fi |
domcox@6129 | 28 # Uncompress |
slaxemulator@7528 | 29 echo -n "Uncompressing langpack ($PACKAGE-$VERSION.xpi)" |
slaxemulator@7528 | 30 mkdir -p $LANG_DIR && unzip -oq $SOURCES_REPOSITORY/$PACKAGE-$VERSION.xpi -d $LANG_DIR |
domcox@6129 | 31 status |
domcox@6129 | 32 } |
domcox@6129 | 33 |
domcox@6129 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
domcox@6129 | 35 genpkg_rules() |
domcox@6129 | 36 { |
domcox@6129 | 37 EXTDIR="$fs/usr/lib/$SOURCE-$VERSION/extensions" |
domcox@6129 | 38 mkdir -p $EXTDIR |
domcox@6129 | 39 cp -a $LANG_DIR $EXTDIR |
domcox@6129 | 40 } |