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