summaryrefslogtreecommitdiff
path: root/community/gambas3/gambas3-script.install
blob: 77c1aa52fb5e9df875a2940596438f05388b981e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
post_install() {
	xdg-icon-resource install --context mimetypes --size 64 \
	/usr/share/gambas3/mime/application-x-gambasscript.png application-x-gambasscript
	xdg-icon-resource install --context mimetypes --size 64 \
	/usr/share/gambas3/mime/application-x-gambasserverpage.png application-x-gambasserverpage
	xdg-mime install /usr/share/gambas3/mime/application-x-gambasscript.xml
	xdg-mime install /usr/share/gambas3/mime/application-x-gambasserverpage.xml
}

pre_remove() {
	xdg-icon-resource uninstall --context mimetypes --size 64 application-x-gambasscript
	xdg-icon-resource uninstall --context mimetypes --size 64 application-x-gambasserverpage
	xdg-mime uninstall /usr/share/gambas3/mime/application-x-gambasscript.xml
	xdg-mime uninstall /usr/share/gambas3/mime/application-x-gambasserverpage.xml
}