summaryrefslogtreecommitdiff
path: root/kde-unstable/kdegames/kdegames-kbattleship.install
blob: ac4516ed08533e281c52bda212f2d4baa2524fc9 (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
post_install() {
	xdg-icon-resource forceupdate --theme hicolor &> /dev/null
    update-desktop-database -q
	ggz-config -i -f -m usr/share/ggz/kbattleship.dsc >& /dev/null
}

pre_remove() {
	if [ -f usr/share/ggz/kbattleship.dsc ]; then
		ggz-config -r -m usr/share/ggz/kbattleship.dsc >& /dev/null
	fi
}

pre_upgrade() {
	pre_remove
}

post_upgrade() {
	post_install
}

post_remove() {
	xdg-icon-resource forceupdate --theme hicolor &> /dev/null
    update-desktop-database -q
}