wok-current rev 13066

abiword: fix compile_rules(); provide all languages listed in 'slitaz-i18n'
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Jun 22 21:49:35 2012 +0000 (2012-06-22)
parents edfa03bccae1
children 1e927999c27f
files abiword/receipt
line diff
     1.1 --- a/abiword/receipt	Fri Jun 22 14:12:12 2012 +0200
     1.2 +++ b/abiword/receipt	Fri Jun 22 21:49:35 2012 +0000
     1.3 @@ -16,8 +16,9 @@
     1.4  WEB_SITE="http://www.abisource.com/"
     1.5  WGET_URL="http://www.abisource.com/downloads/abiword/$VERSION/source/$TARBALL"
     1.6  TAGS="word doc office"
     1.7 +LOCALES="cs da de es fr hu id it pt ru sl sv zh"
     1.8  
     1.9 -# Rules to configure and make the package. 	--enable-extra-optimization \
    1.10 +# Rules to configure and make the package.
    1.11  compile_rules()
    1.12  {
    1.13  	cd $src
    1.14 @@ -44,37 +45,37 @@
    1.15  genpkg_rules()
    1.16  {
    1.17  	mkdir -p $fs/usr/share/pixmaps $fs/usr/lib/abiword-2.8/plugins $fs/usr/share/icons
    1.18 -	
    1.19 +
    1.20  	cp -a $_pkg/usr/bin $fs/usr
    1.21  	cp -a $_pkg/usr/lib/*.so $fs/usr/lib
    1.22 -	
    1.23 +
    1.24  	cp -a $_pkg/usr/share/abiword-* $fs/usr/share
    1.25 +
    1.26  	# Non standard pixmap
    1.27  	cp $_pkg/usr/share/icons/abiword_48.png \
    1.28  		$fs/usr/share/pixmaps/abiword.png
    1.29 +
    1.30  	# fix error when abiword is run in command line
    1.31  	ln -sf /usr/share/pixmaps/abiword.png $fs/usr/share/icons/abiword_48.png
    1.32 -	# Non-standard locale use : get english, spanish, french, german
    1.33 +
    1.34 +	# Non-standard locale use: get all official SliTaz locales
    1.35  	rm $fs/usr/share/abiword-*/strings/*
    1.36  	rm $fs/usr/share/abiword-*/templates/*
    1.37  	rm $fs/usr/share/abiword-*/system.pro*
    1.38 -	cp  $_pkg/usr/share/abiword-*/strings/d* \
    1.39 -	   $_pkg/usr/share/abiword-*/strings/e* \
    1.40 -	    $_pkg/usr/share/abiword-*/strings/f*    \
    1.41 -		$fs/usr/share/abiword-*/strings/
    1.42 -	cp $_pkg/usr/share/abiword-*/templates/normal.awt \
    1.43 -		$_pkg/usr/share/abiword-*/templates/normal.awt-d* \
    1.44 -		$_pkg/usr/share/abiword-*/templates/normal.awt-e*  \
    1.45 -		$_pkg/usr/share/abiword-*/templates/normal.awt-f*  \
    1.46 -	    $fs/usr/share/abiword-*/templates/
    1.47 -	    
    1.48 +
    1.49 +	for LOCALE in $LOCALES; do
    1.50 +		cp $_pkg/usr/share/abiword-*/strings/$LOCALE*.strings \
    1.51 +			 $fs/usr/share/abiword-*/strings/
    1.52 +		# id locale not complete in sources
    1.53 +		if [ "$LOCALE" != "id" ]; then
    1.54 +			cp $_pkg/usr/share/abiword-*/templates/normal.awt-$LOCALE* \
    1.55 +				 $fs/usr/share/abiword-*/templates/
    1.56 +			cp $_pkg/usr/share/abiword-*/system.profile-$LOCALE* \
    1.57 +				 $fs/usr/share/abiword-*/
    1.58 +		fi
    1.59 +	done
    1.60 +
    1.61  	cp $_pkg/usr/share/abiword-*/templates/*.awt $fs/usr/share/abiword-*/templates/
    1.62 -	    
    1.63 -	cp $_pkg/usr/share/abiword-*/system.profile \
    1.64 -		$_pkg/usr/share/abiword-*/system.profile-d* \
    1.65 -		$_pkg/usr/share/abiword-*/system.profile-e* \
    1.66 -		$_pkg/usr/share/abiword-*/system.profile-f* \
    1.67 -	   $fs/usr/share/abiword-*/
    1.68 -
    1.69 +	cp $_pkg/usr/share/abiword-*/system.profile $fs/usr/share/abiword-*/
    1.70  }
    1.71