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