wok view hydroxygen-iconset/receipt @ rev 19880

obexftp: typo
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Apr 02 17:28:17 2017 +0200 (2017-04-02)
parents ac8b7d6576b1
children 4ce52a0b72fd
line source
1 # SliTaz package receipt.
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"
10 TARBALL="$PACKAGE-$VERSION.zip"
11 WGET_URL="http://fc04.deviantart.com/fs40/f/2009/019/8/7/hydroxygen_iconset_by_deviantdark.zip"
13 DEPENDS=""
14 BUILD_DEPENDS=""
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 # Source Zip zrchive contains Tar.Bz2 archive inside
20 echo 'Extract sources'
21 busybox tar -xjf hydroxygen_iconset.tar.bz2 || return 1
22 rm $src/*.tar.bz2
24 # Install all icons
25 echo 'Install all icons'
26 mkdir -p $install/usr/share/icons/hydroxygen
27 cd $src/hydroxygen
28 for i in $(ls -p | fgrep /) index.theme; do
29 cp -a $src/hydroxygen/$i $install/usr/share/icons/hydroxygen
30 done
32 # Stick to oxyblue style, remove other
33 echo 'Remove styles'
34 for i in acquamarine agua black blue brown darkgray deviantdark deviantlight \
35 dust gray green manilla minium orange oxyacquamarine oxyblack oxygreen \
36 oxyorange oxyred oxyviolet oxywhite pink red skyblue violet white yellow;
37 do
38 echo " $i"
39 find $install -type f -name "$i-*.png" -delete
40 find $install -type f -name "*-$i.png" -delete
41 done
42 echo 'Apply oxyblue style'
43 for i in $(find $install -type f -name 'oxyblue-*'); do
44 mv -f $i ${i/oxyblue-/}
45 done
47 # Remove alternatives
48 echo 'Remove alternatives'
49 F="$install/usr/share/icons/hydroxygen"
51 echo ' wicd'
52 mv $F/128x128/apps/wicd-client01.png $F/128x128/apps/wicd-client.png
54 echo ' openoffice'
55 find $install -type f \( -name 'ooo-*-default.png' -o \
56 -name 'openofficeorg-*-default.png' \) -delete
57 for i in $(find $install -type f \( -name 'ooo-*-new.png' -o \
58 -name 'openofficeorg-*-new.png' \) ); do
59 mv -f $i ${i/-new/}
60 done
62 echo ' trash'
63 for i in $(find $install -type f -name 'trashcan_full-new.png'); do
64 mv -f $i ${i/-new/}
65 done
67 echo ' arrows'
68 find $install -type f -name 'minimal*' -delete
70 echo ' start-here'
71 find $install -type f -name 'start-here-*' -delete
73 echo ' misc'
74 for i in wicd-client user-trash trashcan_full amule emesene evolution \
75 exaile filezilla firefox rhythmbox solfege sunbird thunderbird totem \
76 applications-other; do
77 find $install -type f \( -name "${i}0*.png" -o -name "${i}1*.png" -o \
78 -name "$i-default.png" \) -delete
79 done
81 # Fix permissions and ownersheep
82 echo 'Fix permissions and ownersheep'
83 find $install -type f -exec chmod u=rw,g=r,o=r \{\} \;
84 find $install -type d -exec chmod u=rwx,g=rx,o=rx \{\} \;
85 chown -R root:root $install
87 echo 'All done! ;-)'
88 }
90 # Rules to gen a SliTaz package suitable for Tazpkg.
91 genpkg_rules()
92 {
93 cp -a $install/* $fs
94 }