File install.patch of Package hearts

diff --git a/Hearts.pro b/Hearts.pro
index 3539eef..4a280e4 100644
--- a/Hearts.pro
+++ b/Hearts.pro
@@ -8,7 +8,7 @@ QT       += core gui
 
 greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
 
-TARGET = Hearts
+TARGET = hearts
 TEMPLATE = app
 
 
@@ -45,3 +45,23 @@ unix:!macx: LIBS += -lallegro_audio -lallegro_acodec -lallegro_memfile -lallegro
 
 RESOURCES += \
     resources.qrc
+
+unix:!macx {
+  isEmpty(PREFIX) {
+    PREFIX = /usr
+  }
+  BINDIR = $$PREFIX/bin
+  DATADIR = $$PREFIX/share
+
+  DEFINES += DATADIR=\\\"$$DATADIR\\\"
+
+  target.path = $${BINDIR}
+
+  desktop.files = ./data/$${TARGET}.desktop
+  desktop.path = $${DATADIR}/applications
+
+  icons.files += ./data/$${TARGET}.??g
+  icons.path = $${DATADIR}/pixmaps
+
+  INSTALLS += target desktop icons
+}
openSUSE Build Service is sponsored by