wok-next diff faenza-icon-theme-emblems/receipt @ rev 14882

python-socketpool, python-restkit, python-http-parser, python-couchdbkit: we need a meaningfull TARBALL to store sources on mirror
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jul 24 15:51:20 2013 +0000 (2013-07-24)
parents
children 2b9f96603415
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/faenza-icon-theme-emblems/receipt	Wed Jul 24 15:51:20 2013 +0000
     1.3 @@ -0,0 +1,39 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="faenza-icon-theme-emblems"
     1.7 +VERSION="1.3"
     1.8 +CATEGORY="x-window"
     1.9 +SHORT_DESC="Faenza icon theme (emblems)"
    1.10 +MAINTAINER="al.bobylev@gmail.com"
    1.11 +LICENSE=""
    1.12 +WEB_SITE="http://tiheum.deviantart.com/art/Faenza-Icons-173323228"
    1.13 +
    1.14 +WANTED="faenza-icon-theme"
    1.15 +DEPENDS="faenza-icon-theme"
    1.16 +
    1.17 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.18 +genpkg_rules()
    1.19 +{
    1.20 +	mkdir -p $fs/usr/share/icons
    1.21 +	cd $fs/usr/share/icons
    1.22 +	tar xf $src/Faenza.tar.gz Faenza/emblems
    1.23 +	# remove big sizes and scalable
    1.24 +	rm -rf $(find . -type d -regex '.*/\(64\|96\|scalable\)')
    1.25 +	# SliTaz locale settings
    1.26 +	. $WOK/slitaz-i18n/stuff/locale-pack.conf
    1.27 +	cd $fs/usr/share/icons/Faenza/emblems/16
    1.28 +	for icon in $(ls -1 *.icon); do
    1.29 +		CONTENT=$(cat $icon);
    1.30 +		echo "[Icon Data]" > $icon;
    1.31 +		echo "$CONTENT" | grep 'DisplayName=' >> $icon;
    1.32 +		for lang in $LOCALE_PACK; do
    1.33 +			echo "$CONTENT" | fgrep "DisplayName["$lang"]=" >> $icon;
    1.34 +			for size in 22 24 32 48; do
    1.35 +				rm -f ../$size/$icon
    1.36 +				ln -s ../16/$icon ../$size/$icon
    1.37 +			done
    1.38 +		done
    1.39 +	done
    1.40 +	true
    1.41 +}
    1.42 +