summarylogtreecommitdiffstats
path: root/alarm-clock-applet-git.install
blob: 7a1ad434fc30231d4dea75c72cc559fdaece9cd9 (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
post_install() {
	gtk-update-icon-cache /usr/share/icons/hicolor/
	if command -v gconftool-2 &> /dev/null; then
		if [ -d "/etc/gconf/gconf.xml.defaults" ]; then
			GCONF_CONFIG_SOURCE="xml:merged:/etc/gconf/gconf.xml.defaults" gconftool-2 --makefile-install-rule /etc/gconf/schemas/alarm-clock.schemas
		else
			GCONF_CONFIG_SOURCE="" gconftool-2 --makefile-install-rule /etc/gconf/schemas/alarm-clock.schemas
		fi
	fi
	glib-compile-schemas /usr/share/glib-2.0/schemas/
}

post_upgrade(){
	gtk-update-icon-cache /usr/share/icons/hicolor/
}

pre_remove(){
	if command -v gconftool-2 &> /dev/null; then
		if [ -d "/etc/gconf/gconf.xml.defaults" ]; then
			GCONF_CONFIG_SOURCE="xml:merged:/etc/gconf/gconf.xml.defaults" gconftool-2 --makefile-uninstall-rule /etc/gconf/schemas/alarm-clock.schemas
		else
			GCONF_CONFIG_SOURCE="" gconftool-2 --makefile-uninstall-rule /etc/gconf/schemas/alarm-clock.schemas
		fi
	fi
}

post_remove(){
	gtk-update-icon-cache /usr/share/icons/hicolor/
	glib-compile-schemas /usr/share/glib-2.0/schemas/
}