summarylogtreecommitdiffstats
path: root/retroshare.install
blob: 0b8bbbdea6d8871ffd62cd6242613f05b92a2a19 (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
upd_db() {
	if [[ -x update-desktop-database ]]; then
		echo "Update desktop database..."
		update-desktop-database -q
	fi
}

post_install() {
	xdg-icon-resource install --size  24 /usr/share/icons/hicolor/24x24/apps/retroshare06.png   application-RetroShare06
	xdg-icon-resource install --size  48 /usr/share/icons/hicolor/48x48/apps/retroshare06.png   application-RetroShare06
	xdg-icon-resource install --size  64 /usr/share/icons/hicolor/64x64/apps/retroshare06.png   application-RetroShare06
	xdg-icon-resource install --size 128 /usr/share/icons/hicolor/128x128/apps/retroshare06.png application-RetroShare06

	upd_db
}

post_upgrade() {
	post_install
}

post_remove() {
	xdg-icon-resource uninstall --size  24 /usr/share/icons/hicolor/24x24/apps/retroshare06.png
	xdg-icon-resource uninstall --size  48 /usr/share/icons/hicolor/48x48/apps/retroshare06.png
	xdg-icon-resource uninstall --size  64 /usr/share/icons/hicolor/64x64/apps/retroshare06.png
	xdg-icon-resource uninstall --size 128 /usr/share/icons/hicolor/128x128/apps/retroshare06.png

	upd_db
}