summaryrefslogtreecommitdiff
path: root/community/fotoxx/fotoxx.install
diff options
context:
space:
mode:
Diffstat (limited to 'community/fotoxx/fotoxx.install')
-rw-r--r--community/fotoxx/fotoxx.install17
1 files changed, 17 insertions, 0 deletions
diff --git a/community/fotoxx/fotoxx.install b/community/fotoxx/fotoxx.install
new file mode 100644
index 000000000..03d1a4eaf
--- /dev/null
+++ b/community/fotoxx/fotoxx.install
@@ -0,0 +1,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
+}