wok-next diff slitaz-icons-faenza/receipt @ rev 20229
Up cookutils (1002), ladspa (v2), liblo (0.29), hydrogen, svgcleaner; add svgcleaner-gui
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Nov 06 03:21:50 2017 +0200 (2017-11-06) |
parents | 1a7f0416f9b1 |
children | 2f03cb67a994 |
line diff
1.1 --- a/slitaz-icons-faenza/receipt Tue Nov 01 04:07:59 2016 +0200 1.2 +++ b/slitaz-icons-faenza/receipt Mon Nov 06 03:21:50 2017 +0200 1.3 @@ -1,4 +1,4 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="slitaz-icons-faenza" 1.8 VERSION="1.3.1" 1.9 @@ -8,25 +8,22 @@ 1.10 LICENSE="GPL3" 1.11 WEB_SITE="http://www.slitaz.org/" 1.12 1.13 -WANTED="faenza-icon-theme" 1.14 -BUILD_DEPENDS="make-slitaz-icons" 1.15 +BUILD_DEPENDS="faenza-icon-theme make-slitaz-icons" 1.16 +SPLIT="slitaz-icons-faenza-dark" 1.17 1.18 -# Rules to compile and makethe package. 1.19 +# Rules to compile and make the package. 1.20 compile_rules() { 1.21 + # light theme ------------ 1.22 mksit.sh \ 1.23 - -f $install/usr/share/icons/Faenza \ 1.24 - -t $fs/usr/share/icons/SliTaz-Faenza \ 1.25 - -opmax -nocolor 1.26 -} 1.27 + -f /usr/share/icons/Faenza \ 1.28 + -t $install/usr/share/icons/SliTaz-Faenza \ 1.29 + -opmax 1.30 1.31 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.32 -genpkg_rules() 1.33 -{ 1.34 - f="$fs/usr/share/icons/SliTaz-Faenza" 1.35 + f="$install/usr/share/icons/SliTaz-Faenza" 1.36 cp -f $stuff/start-here-slitaz-48.png $f/48x48/places/start-here.png 1.37 - cp $stuff/view-filter.png $stuff/view-sidetree.png $f/16x16/actions 1.38 + cp $stuff/view-filter.png $stuff/view-sidetree.png $f/16x16/actions 1.39 # Use 16x16 icon on 22x22 canvas: 1.40 - cp $stuff/avatar-default.png $f/22x22/status 1.41 + cp $stuff/avatar-default.png $f/22x22/status 1.42 1.43 for i in 16x16 48x48;do 1.44 cd $f/$i/categories 1.45 @@ -34,4 +31,39 @@ 1.46 cp $stuff/applications-science_$i.png applications-science.png 1.47 done 1.48 1.49 + # dark theme ------------ 1.50 + separator 1.51 + mksit.sh \ 1.52 + -f /usr/share/icons/Faenza-Dark \ 1.53 + -t $install/usr/share/icons/SliTaz-Faenza-Dark \ 1.54 + -opmax 1.55 + 1.56 + f="$install/usr/share/icons/SliTaz-Faenza-Dark" 1.57 + for i in $(find $f \( -type f -o -type l \)); do 1.58 + bn=$(basename $i .png) 1.59 + if ! grep -q "^$bn$" $stuff/filelist; then 1.60 + rm $i 1.61 + fi 1.62 + done 1.63 + 1.64 + cp -f $f/16x16/apps/system-log-out.png $f/16x16/actions 1.65 + for d in 16x16/status 16x16/apps 48x48; do rm -r $f/$d; done 1.66 + cp -f $stuff/index.theme $f 1.67 + # Use 16x16 icon on 22x22 canvas: 1.68 + cp $stuff/avatar-default-dark.png $f/22x22/status/avatar-default.png 1.69 } 1.70 + 1.71 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.72 +genpkg_rules() 1.73 +{ 1.74 + case $PACKAGE in 1.75 + slitaz-icons-faenza) 1.76 + copy SliTaz-Faenza/ 1.77 + ;; 1.78 + slitaz-icons-faenza-dark) 1.79 + copy SliTaz-Faenza-Dark/ 1.80 + CAT="customization|for dark themes" 1.81 + DEPENDS="slitaz-icons-faenza" 1.82 + ;; 1.83 + esac 1.84 +}