summaryrefslogtreecommitdiff
path: root/community/fotoxx/fotoxx.install
blob: 03d1a4eaf23e0610233d8dc30d4c5ffc9c6e4375 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
post_install() {
 echo "Adding desktop file"
 echo "[Desktop Entry]" > /usr/share/applications/fotoxx.desktop
 echo "Name=fotoxx" >> /usr/share/applications/fotoxx.desktop
 echo "Categories=Graphics" >> /usr/share/applications/fotoxx.desktop
 echo "Type=Application" >> /usr/share/applications/fotoxx.desktop
 echo "Terminal=false" >> /usr/share/applications/fotoxx.desktop
	echo "Exec=/usr/bin/fotoxx" >> /usr/share/applications/fotoxx.desktop
 echo "Icon=/usr/share/icons/fotoxx.png" >> /usr/share/applications/fotoxx.desktop
 echo "GenericName=Digital Photo Editor" >> /usr/share/applications/fotoxx.desktop
}
post_update() {
 post_install
}
pre_remove() {
  [ -f /usr/share/applications/fotoxx.desktop ] && rm /usr/share/applications/fotoxx.desktop
}