wok annotate faenza-icon-theme-emblems/receipt @ rev 15783
xorg-libXfont: security fix
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jan 13 12:46:49 2014 +0000 (2014-01-13) |
parents | 33e84bccec26 |
children | 40fab26c175d |
rev | line source |
---|---|
pascal@14379 | 1 # SliTaz package receipt. |
pascal@14379 | 2 |
pascal@14379 | 3 PACKAGE="faenza-icon-theme-emblems" |
pascal@14379 | 4 VERSION="1.3" |
pascal@14379 | 5 CATEGORY="x-window" |
pascal@14379 | 6 SHORT_DESC="Faenza icon theme (emblems)" |
pascal@14379 | 7 MAINTAINER="al.bobylev@gmail.com" |
pascal@14999 | 8 LICENSE="GPL3" |
pascal@14379 | 9 WEB_SITE="http://tiheum.deviantart.com/art/Faenza-Icons-173323228" |
pascal@14379 | 10 |
pascal@14379 | 11 WANTED="faenza-icon-theme" |
pascal@14379 | 12 DEPENDS="faenza-icon-theme" |
pascal@14379 | 13 |
pascal@14379 | 14 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@14379 | 15 genpkg_rules() |
pascal@14379 | 16 { |
pascal@14379 | 17 mkdir -p $fs/usr/share/icons |
pascal@14379 | 18 cd $fs/usr/share/icons |
pascal@14379 | 19 tar xf $src/Faenza.tar.gz Faenza/emblems |
pascal@14379 | 20 # remove big sizes and scalable |
pascal@14379 | 21 rm -rf $(find . -type d -regex '.*/\(64\|96\|scalable\)') |
pascal@14379 | 22 # SliTaz locale settings |
pascal@14379 | 23 . $WOK/slitaz-i18n/stuff/locale-pack.conf |
pascal@14379 | 24 cd $fs/usr/share/icons/Faenza/emblems/16 |
pascal@14379 | 25 for icon in $(ls -1 *.icon); do |
pascal@14379 | 26 CONTENT=$(cat $icon); |
pascal@14379 | 27 echo "[Icon Data]" > $icon; |
pascal@14379 | 28 echo "$CONTENT" | grep 'DisplayName=' >> $icon; |
pascal@14379 | 29 for lang in $LOCALE_PACK; do |
pascal@14379 | 30 echo "$CONTENT" | fgrep "DisplayName["$lang"]=" >> $icon; |
pascal@14379 | 31 for size in 22 24 32 48; do |
pascal@14379 | 32 rm -f ../$size/$icon |
pascal@14379 | 33 ln -s ../16/$icon ../$size/$icon |
pascal@14379 | 34 done |
pascal@14379 | 35 done |
pascal@14379 | 36 done |
pascal@14379 | 37 true |
pascal@14379 | 38 } |
pascal@14379 | 39 |