wok annotate faenza-icon-theme-emblems/receipt @ rev 23182

updated mlvpn (1.3.2 -> 2.3.4)
author Hans-G?nter Theisgen
date Thu Mar 19 16:46:22 2020 +0100 (2020-03-19)
parents 40fab26c175d
children
rev   line source
pascal@14379 1 # SliTaz package receipt.
pascal@14379 2
pascal@14379 3 PACKAGE="faenza-icon-theme-emblems"
Hans-G?nter@22715 4 VERSION="1.3.1"
al@19126 5 CATEGORY="customization"
Hans-G?nter@22715 6 SHORT_DESC="Faenza icon theme (emblems)."
pascal@14379 7 MAINTAINER="al.bobylev@gmail.com"
pascal@14999 8 LICENSE="GPL3"
Hans-G?nter@22715 9 WEB_SITE="https://deviantart.com/tiheum/art/Faenza-Icons-173323228"
pascal@14379 10
Hans-G?nter@22715 11 DEPENDS="faenza-icon-theme"
pascal@14379 12 WANTED="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 {
Hans-G?nter@22715 17 mkdir -p $fs/usr/share/icons/Faenza
Hans-G?nter@22715 18 cd $fs/usr/share/icons/Faenza
Hans-G?nter@22715 19 cp -a $src/Faenza/emblems .
Hans-G?nter@22715 20
pascal@14379 21 # remove big sizes and scalable
pascal@14379 22 rm -rf $(find . -type d -regex '.*/\(64\|96\|scalable\)')
pascal@14379 23 # SliTaz locale settings
pascal@14379 24 . $WOK/slitaz-i18n/stuff/locale-pack.conf
Hans-G?nter@22715 25
pascal@14379 26 cd $fs/usr/share/icons/Faenza/emblems/16
Hans-G?nter@22715 27 for icon in $(ls -1 *.icon)
Hans-G?nter@22715 28 do
Hans-G?nter@22715 29 CONTENT=$(cat $icon)
Hans-G?nter@22715 30 echo "[Icon Data]" > $icon
Hans-G?nter@22715 31 echo "$CONTENT" | grep 'DisplayName=' >> $icon
Hans-G?nter@22715 32 for lang in $LOCALE_PACK
Hans-G?nter@22715 33 do
Hans-G?nter@22715 34 echo "$CONTENT" | fgrep "DisplayName["$lang"]=" >> $icon
Hans-G?nter@22715 35 for size in 22 24 32 48
Hans-G?nter@22715 36 do
pascal@14379 37 rm -f ../$size/$icon
pascal@14379 38 ln -s ../16/$icon ../$size/$icon
Hans-G?nter@22715 39 done
Hans-G?nter@22715 40 done
Hans-G?nter@22715 41 done
pascal@14379 42 true
pascal@14379 43 }