updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / illumination-software-creator / illumination.install
blob7b7751217bd1b3c518a113ce9f41fdd2cb8cfee5
1 post_install() {
3 if [ ! -e /usr/share/applications/illumination.desktop ]; then
4 echo "[Desktop Entry]                                                                                                                                                                                                                                                                
5 Version=1.0                                                                                                                                                                                                                                                                    
6 Encoding=UTF-8                                                                                                                                                                                                                                                                 
7 Name=Illumination Software Creator                                                                                                                                                                                                                                             
8 Comment=Visual Software Creation                                                                                                                                                                                                                                               
9 Exec=/opt/illumination/illumination                                                                                                                                                                                                                              
10 Icon=/opt/illumination/illumicon.png                                                                                                                                                                                                                             
11 Terminal=false                                                                                                                                                                                                                                                                 
12 Type=Application                                                                                                                                                                                                                                                               
13 Categories=GNOME;Application;Development;                                                                                                                                                                                                                                      
14 OnlyShowIn=Development;                                                                                                                                                                                                                                                              
15 Name[en_US]=Illumination Software Creator " > /usr/share/applications/illumination.desktop
18   echo "update desktop mime database..."
19   update-desktop-database -q
20   if [ ! -e /opt/illumination/illumination ]; then ln -s /opt/illumination/illumination /usr/bin/illumination; fi 
24 post_upgrade() {
25   post_install $1
28 post_remove() {
29   post_install $1
30   if [ -e /usr/bin/illumination ]; then rm  /usr/bin/illumination; fi
31   if [ -e /usr/share/applications/illumination.desktop ]; then rm  /usr/share/applications/illumination.desktop; fi