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