wok view faenza-icon-theme-emblems/receipt @ rev 24992
Up sip (4.19.25)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat May 14 18:19:29 2022 +0000 (2022-05-14) |
parents | 40fab26c175d |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="faenza-icon-theme-emblems"
4 VERSION="1.3.1"
5 CATEGORY="customization"
6 SHORT_DESC="Faenza icon theme (emblems)."
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="GPL3"
9 WEB_SITE="https://deviantart.com/tiheum/art/Faenza-Icons-173323228"
11 DEPENDS="faenza-icon-theme"
12 WANTED="faenza-icon-theme"
14 # Rules to gen a SliTaz package suitable for Tazpkg.
15 genpkg_rules()
16 {
17 mkdir -p $fs/usr/share/icons/Faenza
18 cd $fs/usr/share/icons/Faenza
19 cp -a $src/Faenza/emblems .
21 # remove big sizes and scalable
22 rm -rf $(find . -type d -regex '.*/\(64\|96\|scalable\)')
23 # SliTaz locale settings
24 . $WOK/slitaz-i18n/stuff/locale-pack.conf
26 cd $fs/usr/share/icons/Faenza/emblems/16
27 for icon in $(ls -1 *.icon)
28 do
29 CONTENT=$(cat $icon)
30 echo "[Icon Data]" > $icon
31 echo "$CONTENT" | grep 'DisplayName=' >> $icon
32 for lang in $LOCALE_PACK
33 do
34 echo "$CONTENT" | fgrep "DisplayName["$lang"]=" >> $icon
35 for size in 22 24 32 48
36 do
37 rm -f ../$size/$icon
38 ln -s ../16/$icon ../$size/$icon
39 done
40 done
41 done
42 true
43 }