# SliTaz package receipt.

PACKED_SIZE="32.0K"
UNPACKED_SIZE="220.0K"
PACKAGE="slitaz-icons-faenza-dark"
VERSION="1.3.1"
CATEGORY="customization"
SHORT_DESC="SliTaz icon set based on the Faenza-Dark icons"
MAINTAINER="al.bobylev@gmail.com"
LICENSE="GPL3"
WEB_SITE="http://www.slitaz.org/"

WANTED="faenza-icon-theme"
DEPENDS="slitaz-icons-faenza"
BUILD_DEPENDS="make-slitaz-icons"

# Rules to compile and makethe package.
compile_rules() {
	mksit.sh \
		-f $install/usr/share/icons/Faenza-Dark \
		-t $fs/usr/share/icons/SliTaz-Faenza-Dark \
		-opmax -nocolor
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	f="$fs/usr/share/icons/SliTaz-Faenza-Dark"

	for i in $(find $f \( -type f -o -type l \)); do
		bn=$(basename $i .png)
		if ! grep -q "^$bn$" $stuff/filelist; then
			rm $i
		fi
	done

	cp -f $f/16x16/apps/system-log-out.png $f/16x16/actions
	for d in 16x16/status 16x16/apps 48x48; do rm -r $f/$d; done
	cp -f $stuff/index.theme $f
	# Use 16x16 icon on 22x22 canvas:
	cp  $stuff/avatar-default.png $f/22x22/status
}
