wok-next view hydroxygen-iconset/receipt @ rev 20275

remove samba-pam (again, thank Aleksej)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Nov 08 10:18:58 2017 +0100 (2017-11-08)
parents 7c50dfc88e2a
children d5aab818505e
line source
1 # SliTaz package receipt v2.
3 PACKAGE="hydroxygen-iconset"
4 VERSION="20090119"
5 CATEGORY="customization"
6 SHORT_DESC="GTK+ port of the KDE4 Oxygen icon theme"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="CC GPL"
9 WEB_SITE="http://deviantdark.deviantart.com/art/hydroxygen-iconset-100826865"
11 TARBALL="$PACKAGE-$VERSION.zip"
12 WGET_URL="http://fc04.deviantart.com/fs40/f/2009/019/8/7/hydroxygen_iconset_by_deviantdark.zip"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 # Source Zip archive contains Tar.Bz2 archive inside
18 echo 'Extract sources'
19 busybox tar -xjf hydroxygen_iconset.tar.bz2 || return 1
20 rm $src/*.tar.bz2
22 # Install all icons
23 echo 'Install all icons'
24 mkdir -p $install/usr/share/icons/hydroxygen
25 cd $src/hydroxygen
26 for i in $(ls -p | fgrep /) index.theme; do
27 cp -a $src/hydroxygen/$i $install/usr/share/icons/hydroxygen
28 done
30 # Stick to oxyblue style, remove other
31 echo 'Remove styles'
32 for i in acquamarine agua black blue brown darkgray deviantdark deviantlight \
33 dust gray green manilla minium orange oxyacquamarine oxyblack oxygreen \
34 oxyorange oxyred oxyviolet oxywhite pink red skyblue violet white yellow;
35 do
36 echo " $i"
37 find $install -type f -name "$i-*.png" -delete
38 find $install -type f -name "*-$i.png" -delete
39 done
40 echo 'Apply oxyblue style'
41 for i in $(find $install -type f -name 'oxyblue-*'); do
42 mv -f $i ${i/oxyblue-/}
43 done
45 # Remove alternatives
46 echo 'Remove alternatives'
47 F="$install/usr/share/icons/hydroxygen"
49 echo ' wicd'
50 mv $F/128x128/apps/wicd-client01.png $F/128x128/apps/wicd-client.png
52 echo ' openoffice'
53 find $install -type f \( -name 'ooo-*-default.png' -o \
54 -name 'openofficeorg-*-default.png' \) -delete
55 for i in $(find $install -type f \( -name 'ooo-*-new.png' -o \
56 -name 'openofficeorg-*-new.png' \) ); do
57 mv -f $i ${i/-new/}
58 done
60 echo ' trash'
61 for i in $(find $install -type f -name 'trashcan_full-new.png'); do
62 mv -f $i ${i/-new/}
63 done
65 echo ' arrows'
66 find $install -type f -name 'minimal*' -delete
68 echo ' start-here'
69 find $install -type f -name 'start-here-*' -delete
71 echo ' misc'
72 for i in wicd-client user-trash trashcan_full amule emesene evolution \
73 exaile filezilla firefox rhythmbox solfege sunbird thunderbird totem \
74 applications-other; do
75 find $install -type f \( -name "${i}0*.png" -o -name "${i}1*.png" -o \
76 -name "$i-default.png" \) -delete
77 done
79 # Fix permissions and ownership
80 echo 'Fix permissions and ownership'
81 find $install -type f -exec chmod u=rw,g=r,o=r \{\} \;
82 find $install -type d -exec chmod u=rwx,g=rx,o=rx \{\} \;
83 chown -R root:root $install
85 echo 'All done! ;-)'
86 }
88 # Rules to gen a SliTaz package suitable for Tazpkg.
89 genpkg_rules()
90 {
91 cp -a $install/* $fs
92 }