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