wok rev 8555

imported patch get/firefox-langpack-zh_TW
author Antoine Bodin <gokhlayeh@slitaz.org>
date Sun Feb 13 22:57:56 2011 +0100 (2011-02-13)
parents fef2aa76609f
children bc238c62a0b3
files firefox-langpack-zh_TW/receipt
line diff
     1.1 --- a/firefox-langpack-zh_TW/receipt	Sun Feb 13 22:57:56 2011 +0100
     1.2 +++ b/firefox-langpack-zh_TW/receipt	Sun Feb 13 22:57:56 2011 +0100
     1.3 @@ -7,38 +7,23 @@
     1.4  MAINTAINER="lufeng369@gmail.com"
     1.5  DEPENDS="firefox"
     1.6  WEB_SITE="http://www.mozilla.com"
     1.7 -SOURCE="firefox"
     1.8  LANG=`echo $PACKAGE | cut -d'-' -f3 | tr '_' '-'`
     1.9  LANG_DIR="langpack-$LANG@firefox.mozilla.org"
    1.10  TARBALL="$LANG.xpi"
    1.11 -URL="http://releases.mozilla.org/pub/mozilla.org/firefox/releases/$VERSION/linux-i686/xpi/$TARBALL"
    1.12 +WGET_URL="http://releases.mozilla.org/pub/mozilla.org/firefox/releases/$VERSION/linux-i686/xpi/$TARBALL"
    1.13  
    1.14  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.15  compile_rules()
    1.16  {
    1.17 -	cd $WOK/$PACKAGE
    1.18 -        mkdir -p $LANG_DIR
    1.19 -
    1.20 -	# Get xpi
    1.21 -	if [ -f $SOURCES_REPOSITORY/$PACKAGE-$VERSION.xpi ]; then
    1.22 -		echo "Using current langpack ($PACKAGE-$VERSION.xpi)"
    1.23 -	else
    1.24 -		echo "Downloading langpack ($PACKAGE-$VERSION.xpi)"
    1.25 -	        wget -O $SOURCES_REPOSITORY/$PACKAGE-$VERSION.xpi $URL
    1.26 -	fi
    1.27 -	# Uncompress
    1.28 -	echo -n "Uncompressing langpack ($PACKAGE-$VERSION.xpi)"
    1.29 -	mkdir -p $LANG_DIR && unzip $SOURCES_REPOSITORY/$PACKAGE-$VERSION.xpi -d $LANG_DIR
    1.30 -	status
    1.31 -        
    1.32 +	:        
    1.33  }
    1.34  
    1.35  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.36  genpkg_rules()
    1.37  {
    1.38 -	EXTDIR="$fs/usr/lib/$SOURCE-$VERSION/extensions"
    1.39 +	EXTDIR="$fs/usr/lib/$SOURCE-$VERSION/extensions/$LANG_DIR"
    1.40  	mkdir -p $EXTDIR
    1.41 -	cp -a $LANG_DIR $EXTDIR
    1.42 +	cp -a $src/* $EXTDIR
    1.43  }
    1.44  
    1.45  post_install()