wok-6.x view hydroxygen-iconset/receipt @ rev 25377
updated udpxy (1.0.24.1 -> 1.0.25.1)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Jul 30 11:20:37 2022 +0100 (2022-07-30) |
parents | 4ce52a0b72fd |
children | 73f36875e5a7 |
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="https://web.archive.org/web/20150801202308if_/http://orig03.deviantart.net/1b20/f/2009/019/8/7/hydroxygen_iconset_by_deviantdark.zip"
13 DEPENDS=""
14 BUILD_DEPENDS=""
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - $WEB_SITE 2>/dev/null | \
20 sed 's|}|}\n|g;s|</|</\n|g' | sed '/dateTime=/!d;s|.*dateTime=.||;s|T.*||;s|-||g;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 # Source Zip zrchive contains Tar.Bz2 archive inside
27 echo 'Extract sources'
28 busybox tar -xjf hydroxygen_iconset.tar.bz2 || return 1
29 rm $src/*.tar.bz2
31 # Install all icons
32 echo 'Install all icons'
33 mkdir -p $install/usr/share/icons/hydroxygen
34 cd $src/hydroxygen
35 for i in $(ls -p | fgrep /) index.theme; do
36 cp -a $src/hydroxygen/$i $install/usr/share/icons/hydroxygen
37 done
39 # Stick to oxyblue style, remove other
40 echo 'Remove styles'
41 for i in acquamarine agua black blue brown darkgray deviantdark deviantlight \
42 dust gray green manilla minium orange oxyacquamarine oxyblack oxygreen \
43 oxyorange oxyred oxyviolet oxywhite pink red skyblue violet white yellow;
44 do
45 echo " $i"
46 find $install -type f -name "$i-*.png" -delete
47 find $install -type f -name "*-$i.png" -delete
48 done
49 echo 'Apply oxyblue style'
50 for i in $(find $install -type f -name 'oxyblue-*'); do
51 mv -f $i ${i/oxyblue-/}
52 done
54 # Remove alternatives
55 echo 'Remove alternatives'
56 F="$install/usr/share/icons/hydroxygen"
58 echo ' wicd'
59 mv $F/128x128/apps/wicd-client01.png $F/128x128/apps/wicd-client.png
61 echo ' openoffice'
62 find $install -type f \( -name 'ooo-*-default.png' -o \
63 -name 'openofficeorg-*-default.png' \) -delete
64 for i in $(find $install -type f \( -name 'ooo-*-new.png' -o \
65 -name 'openofficeorg-*-new.png' \) ); do
66 mv -f $i ${i/-new/}
67 done
69 echo ' trash'
70 for i in $(find $install -type f -name 'trashcan_full-new.png'); do
71 mv -f $i ${i/-new/}
72 done
74 echo ' arrows'
75 find $install -type f -name 'minimal*' -delete
77 echo ' start-here'
78 find $install -type f -name 'start-here-*' -delete
80 echo ' misc'
81 for i in wicd-client user-trash trashcan_full amule emesene evolution \
82 exaile filezilla firefox rhythmbox solfege sunbird thunderbird totem \
83 applications-other; do
84 find $install -type f \( -name "${i}0*.png" -o -name "${i}1*.png" -o \
85 -name "$i-default.png" \) -delete
86 done
88 # Fix permissions and ownersheep
89 echo 'Fix permissions and ownersheep'
90 find $install -type f -exec chmod u=rw,g=r,o=r \{\} \;
91 find $install -type d -exec chmod u=rwx,g=rx,o=rx \{\} \;
92 chown -R root:root $install
94 echo 'All done! ;-)'
95 }
97 # Rules to gen a SliTaz package suitable for Tazpkg.
98 genpkg_rules()
99 {
100 cp -a $install/* $fs
101 }