wok-next annotate hydroxygen-iconset/receipt @ rev 21038

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