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

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents d0308bf5ec4a
children 053a334547a1
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="https://www.deviantart.com/deviantdark/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 compile_rules() {
15 # Source Zip archive contains Tar.Bz2 archive inside
16 echo 'Extract sources'
17 busybox tar -xjf hydroxygen_iconset.tar.bz2 || return 1
18 rm $src/*.tar.bz2
20 # Install all icons
21 echo 'Install all icons'
22 mkdir -p $install/usr/share/icons/hydroxygen
23 cd $src/hydroxygen
24 for i in $(ls -p | fgrep /) index.theme; do
25 cp -a $src/hydroxygen/$i $install/usr/share/icons/hydroxygen
26 done
28 # Stick to oxyblue style, remove other
29 echo 'Remove styles'
30 for i in acquamarine agua black blue brown darkgray deviantdark deviantlight \
31 dust gray green manilla minium orange oxyacquamarine oxyblack oxygreen \
32 oxyorange oxyred oxyviolet oxywhite pink red skyblue violet white yellow;
33 do
34 echo " $i"
35 find $install -type f -name "$i-*.png" -delete
36 find $install -type f -name "*-$i.png" -delete
37 done
38 echo 'Apply oxyblue style'
39 for i in $(find $install -type f -name 'oxyblue-*'); do
40 mv -f $i ${i/oxyblue-/}
41 done
43 # Remove alternatives
44 echo 'Remove alternatives'
45 F="$install/usr/share/icons/hydroxygen"
47 echo ' wicd'
48 mv $F/128x128/apps/wicd-client01.png $F/128x128/apps/wicd-client.png
50 echo ' openoffice'
51 find $install -type f \( -name 'ooo-*-default.png' -o \
52 -name 'openofficeorg-*-default.png' \) -delete
53 for i in $(find $install -type f \( -name 'ooo-*-new.png' -o \
54 -name 'openofficeorg-*-new.png' \) ); do
55 mv -f $i ${i/-new/}
56 done
58 echo ' trash'
59 for i in $(find $install -type f -name 'trashcan_full-new.png'); do
60 mv -f $i ${i/-new/}
61 done
63 echo ' arrows'
64 find $install -type f -name 'minimal*' -delete
66 echo ' start-here'
67 find $install -type f -name 'start-here-*' -delete
69 echo ' misc'
70 for i in wicd-client user-trash trashcan_full amule emesene evolution \
71 exaile filezilla firefox rhythmbox solfege sunbird thunderbird totem \
72 applications-other; do
73 find $install -type f \( -name "${i}0*.png" -o -name "${i}1*.png" -o \
74 -name "$i-default.png" \) -delete
75 done
77 # Fix permissions and ownership
78 echo 'Fix permissions and ownership'
79 find $install -type f -exec chmod u=rw,g=r,o=r \{\} \;
80 find $install -type d -exec chmod u=rwx,g=rx,o=rx \{\} \;
81 chown -R root:root $install
83 echo 'All done! ;-)'
84 }
86 genpkg_rules() {
87 cp -a $install/* $fs
88 }