wok-next view slitaz-icons-faenza/receipt @ rev 19925

libftdi: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Oct 14 23:27:36 2017 +0200 (2017-10-14)
parents 1a7f0416f9b1
children 2f03cb67a994
line source
1 # SliTaz package receipt v2.
3 PACKAGE="slitaz-icons-faenza"
4 VERSION="1.3.1"
5 CATEGORY="customization"
6 SHORT_DESC="SliTaz icon set based on the Faenza icons"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="GPL3"
9 WEB_SITE="http://www.slitaz.org/"
11 BUILD_DEPENDS="faenza-icon-theme make-slitaz-icons"
12 SPLIT="slitaz-icons-faenza-dark"
14 # Rules to compile and make the package.
15 compile_rules() {
16 # light theme ------------
17 mksit.sh \
18 -f /usr/share/icons/Faenza \
19 -t $install/usr/share/icons/SliTaz-Faenza \
20 -opmax
22 f="$install/usr/share/icons/SliTaz-Faenza"
23 cp -f $stuff/start-here-slitaz-48.png $f/48x48/places/start-here.png
24 cp $stuff/view-filter.png $stuff/view-sidetree.png $f/16x16/actions
25 # Use 16x16 icon on 22x22 canvas:
26 cp $stuff/avatar-default.png $f/22x22/status
28 for i in 16x16 48x48;do
29 cd $f/$i/categories
30 mv applications-science.png applications-education.png
31 cp $stuff/applications-science_$i.png applications-science.png
32 done
34 # dark theme ------------
35 separator
36 mksit.sh \
37 -f /usr/share/icons/Faenza-Dark \
38 -t $install/usr/share/icons/SliTaz-Faenza-Dark \
39 -opmax
41 f="$install/usr/share/icons/SliTaz-Faenza-Dark"
42 for i in $(find $f \( -type f -o -type l \)); do
43 bn=$(basename $i .png)
44 if ! grep -q "^$bn$" $stuff/filelist; then
45 rm $i
46 fi
47 done
49 cp -f $f/16x16/apps/system-log-out.png $f/16x16/actions
50 for d in 16x16/status 16x16/apps 48x48; do rm -r $f/$d; done
51 cp -f $stuff/index.theme $f
52 # Use 16x16 icon on 22x22 canvas:
53 cp $stuff/avatar-default-dark.png $f/22x22/status/avatar-default.png
54 }
56 # Rules to gen a SliTaz package suitable for Tazpkg.
57 genpkg_rules()
58 {
59 case $PACKAGE in
60 slitaz-icons-faenza)
61 copy SliTaz-Faenza/
62 ;;
63 slitaz-icons-faenza-dark)
64 copy SliTaz-Faenza-Dark/
65 CAT="customization|for dark themes"
66 DEPENDS="slitaz-icons-faenza"
67 ;;
68 esac
69 }