wok-next diff hydroxygen-iconset/receipt @ rev 18537

Up mp(5.2.10), kkedit(0.2.11), mplayer: fix *desktop
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Mon Nov 02 12:40:01 2015 +0100 (2015-11-02)
parents
children 40fab26c175d
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/hydroxygen-iconset/receipt	Mon Nov 02 12:40:01 2015 +0100
     1.3 @@ -0,0 +1,94 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="hydroxygen-iconset"
     1.7 +VERSION="20090119"
     1.8 +CATEGORY="misc"
     1.9 +SHORT_DESC="GTK+ port of the KDE4 Oxygen icon theme"
    1.10 +MAINTAINER="al.bobylev@gmail.com"
    1.11 +LICENSE="CC GPL"
    1.12 +WEB_SITE="http://deviantdark.deviantart.com/art/hydroxygen-iconset-100826865"
    1.13 +TARBALL="$PACKAGE-$VERSION.zip"
    1.14 +WGET_URL="http://fc04.deviantart.com/fs40/f/2009/019/8/7/hydroxygen_iconset_by_deviantdark.zip"
    1.15 +
    1.16 +DEPENDS=""
    1.17 +BUILD_DEPENDS=""
    1.18 +
    1.19 +# Rules to configure and make the package.
    1.20 +compile_rules()
    1.21 +{
    1.22 +	# Source Zip zrchive contains Tar.Bz2 archive inside
    1.23 +	echo 'Extract sources'
    1.24 +	busybox tar -xjf hydroxygen_iconset.tar.bz2 || return 1
    1.25 +	rm $src/*.tar.bz2
    1.26 +
    1.27 +	# Install all icons
    1.28 +	echo 'Install all icons'
    1.29 +	mkdir -p $install/usr/share/icons/hydroxygen
    1.30 +	cd $src/hydroxygen
    1.31 +	for i in $(ls -p | fgrep /) index.theme; do
    1.32 +		cp -a $src/hydroxygen/$i $install/usr/share/icons/hydroxygen
    1.33 +	done
    1.34 +
    1.35 +	# Stick to oxyblue style, remove other
    1.36 +	echo 'Remove styles'
    1.37 +	for i in acquamarine agua black blue brown darkgray deviantdark deviantlight \
    1.38 +		dust gray green manilla minium orange oxyacquamarine oxyblack oxygreen \
    1.39 +		oxyorange oxyred oxyviolet oxywhite pink red skyblue violet white yellow;
    1.40 +		do
    1.41 +		echo "  $i"
    1.42 +		find $install -type f -name "$i-*.png" -delete
    1.43 +		find $install -type f -name "*-$i.png" -delete
    1.44 +	done
    1.45 +	echo 'Apply oxyblue style'
    1.46 +	for i in $(find $install -type f -name 'oxyblue-*'); do
    1.47 +		mv -f $i ${i/oxyblue-/}
    1.48 +	done
    1.49 +
    1.50 +	# Remove alternatives
    1.51 +	echo 'Remove alternatives'
    1.52 +	F="$install/usr/share/icons/hydroxygen"
    1.53 +
    1.54 +	echo '  wicd'
    1.55 +	mv $F/128x128/apps/wicd-client01.png $F/128x128/apps/wicd-client.png
    1.56 +
    1.57 +	echo '  openoffice'
    1.58 +	find $install -type f \( -name 'ooo-*-default.png' -o \
    1.59 +		-name 'openofficeorg-*-default.png' \) -delete
    1.60 +	for i in $(find $install -type f \( -name 'ooo-*-new.png' -o \
    1.61 +		-name 'openofficeorg-*-new.png' \) ); do
    1.62 +		mv -f $i ${i/-new/}
    1.63 +	done
    1.64 +
    1.65 +	echo '  trash'
    1.66 +	for i in $(find $install -type f -name 'trashcan_full-new.png'); do
    1.67 +		mv -f $i ${i/-new/}
    1.68 +	done
    1.69 +
    1.70 +	echo '  arrows'
    1.71 +	find $install -type f -name 'minimal*' -delete
    1.72 +
    1.73 +	echo '  start-here'
    1.74 +	find $install -type f -name 'start-here-*' -delete
    1.75 +
    1.76 +	echo '  misc'
    1.77 +	for i in wicd-client user-trash trashcan_full amule emesene evolution \
    1.78 +		exaile filezilla firefox rhythmbox solfege sunbird thunderbird totem \
    1.79 +		applications-other; do
    1.80 +		find $install -type f \( -name "${i}0*.png" -o -name "${i}1*.png" -o \
    1.81 +		-name "$i-default.png" \) -delete
    1.82 +	done
    1.83 +
    1.84 +	# Fix permissions and ownersheep
    1.85 +	echo 'Fix permissions and ownersheep'
    1.86 +	find $install -type f -exec chmod u=rw,g=r,o=r \{\} \;
    1.87 +	find $install -type d -exec chmod u=rwx,g=rx,o=rx \{\} \;
    1.88 +	chown -R root:root $install
    1.89 +
    1.90 +	echo 'All done! ;-)'
    1.91 +}
    1.92 +
    1.93 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.94 +genpkg_rules()
    1.95 +{
    1.96 +	cp -a $install/* $fs
    1.97 +}