wok diff paper-icon-theme/receipt @ rev 19518
Up get-palemoon (27.0.0)
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Wed Nov 23 11:04:21 2016 +0100 (2016-11-23) |
parents | 3498b49b1fc9 |
children | 4b55a51aefa5 |
line diff
1.1 --- a/paper-icon-theme/receipt Tue Nov 01 04:02:18 2016 +0200 1.2 +++ b/paper-icon-theme/receipt Wed Nov 23 11:04:21 2016 +0100 1.3 @@ -20,10 +20,16 @@ 1.4 ./autogen.sh && 1.5 make && make install 1.6 1.7 - # optimize all svg icons 1.8 - for svg in $(find $install -type f -name '*.svg'); do 1.9 - echo -n "${svg#*Paper/}: "; svgcleaner $svg $svg 1.10 + # remove hdpi icons, and huge sizes 1.11 + it="$install/usr/share/icons/Paper/index.theme" 1.12 + for i in 8x8@2x 16x16@2x 24x24@2x 32x32@2x 48x48@2x 512x512@2x 512x512; do 1.13 + echo "Remove $i" 1.14 + rm -r $install/usr/share/icons/Paper/$i 1.15 + sed -i "s|$i[^,]*,||g" $it 1.16 + sed -i "/^\[$i/,/^\[/{/^\[/b;d}" $it 1.17 + sed -i "/^\[$i/d" $it 1.18 done 1.19 + sed -i '/HiDPi/,$d' $it 1.20 1.21 # remove duplicates (keep <name>.png, remove <name>.svg) 1.22 for svg in $(find $install -name '*.svg'); do 1.23 @@ -32,20 +38,14 @@ 1.24 rm "$svg" 1.25 fi 1.26 done 1.27 + 1.28 + # optimize all icons 1.29 + cook_compress_svg 1.30 + cook_compress_png 1.31 } 1.32 1.33 # Rules to gen a SliTaz package suitable for Tazpkg. 1.34 genpkg_rules() 1.35 { 1.36 cp -a $install/* $fs 1.37 - 1.38 - # remove hdpi icons, and huge sizes 1.39 - it="$fs/usr/share/icons/Paper/index.theme" 1.40 - for i in 8x8@2x 16x16@2x 24x24@2x 32x32@2x 48x48@2x 512x512@2x 512x512; do 1.41 - rm -r $fs/usr/share/icons/Paper/$i 1.42 - sed -i "s|$i[^,]*,||g" $it 1.43 - sed -i "/^\[$i/,/^\[/{/^\[/b;d}" $it 1.44 - sed -i "/^\[$i/d" $it 1.45 - done 1.46 - sed -i '/HiDPi/,$d' $it 1.47 }