aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/matchbox2/matchbox-panel-2-icon-themes_0.0.1.bb
blob: 2d14e0c65ba16fb99dc4c98abac043f42bae5f1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
DESCRIPTION = "icon theme for matchbox-panel-2"
LICENSE = "GPLv2"
SECTION = "x11/panels"
DEPENDS = "imagemagick-native"
RPROVIDES_${PN} = "matchbox-panel-2-icon-theme"
PACKAGE_ARCH = "all"
PV = "0.0.1+svnr${SRCREV}"
PR = "r0"

inherit gtk-icon-cache

SRC_URI = "svn://svn.o-hand.com/repos/matchbox/trunk;module=matchbox-panel-2/applets/battery/data;proto=http;maxrev=1918 \
	   svn://svn.o-hand.com/repos/matchbox/trunk;module=matchbox-panel-2/applets/startup/data;proto=http \
	   svn://svn.o-hand.com/repos/matchbox/trunk;module=matchbox-panel-2/applets/brightness/data;proto=http \
	   file://user-desktop.png \
	   file://task-switcher.png \
"
S = "${WORKDIR}"

do_install() {
	cd ${S}
	mkdir -p ${D}${datadir}/icons/HighContrast/48x48/status ${D}${datadir}/icons/HighContrastInverse/48x48/status
	install -m 0644 matchbox-panel-2/applets/battery/data/*.png ${D}${datadir}/icons/HighContrastInverse/48x48/status/
	mkdir -p ${D}${datadir}/icons/HighContrast/32x32/status ${D}${datadir}/icons/HighContrastInverse/32x32/status
	install -m 0644 matchbox-panel-2/applets/brightness/data/*.png ${D}${datadir}/icons/HighContrastInverse/32x32/status/
	mkdir -p ${D}${datadir}/icons/HighContrast/32x32/animations ${D}${datadir}/icons/HighContrastInverse/32x32/animations
	install -m 0644 matchbox-panel-2/applets/startup/data/*.png ${D}${datadir}/icons/HighContrastInverse/32x32/animations/
	cd ${D}${datadir}/icons/HighContrastInverse
	for PNG in */*/*.png ; do
		convert -negate $PNG ../HighContrast/$PNG
	done
	cd ${S}
	mkdir -p ${D}${datadir}/icons/HighContrast/32x32/apps ${D}${datadir}/icons/HighContrastInverse/32x32/apps
	install -m 0644 user-desktop.png task-switcher.png ${D}${datadir}/icons/HighContrast/32x32/apps/
	cd ${D}${datadir}/icons/HighContrast
	for PNG in 32x32/apps/*.png ; do
		convert -negate $PNG ../HighContrastInverse/$PNG
	done
	cd ${S}

	# FIXME: The default vendor provided theme uses "white on
	# transparent" style and it is invisible with the default GTK+
	# style. We need a better solution for fallback icons and dark
	# themes. For now, define only "black on transparent" as
	# hicolor. It is still pretty ugly: Hicolor is expected to be
	# hicolor, makes icons invisible in dark themes.
	rm -r ${D}${datadir}/icons/HighContrastInverse
	mv ${D}${datadir}/icons/HighContrast ${D}${datadir}/icons/hicolor
}

FILES_${PN} += "${datadir}/icons/*"