Packaging for version 0.2
[bootcreen] / src / src.pro
index 5d5de4a..a236ddb 100644 (file)
@@ -1,3 +1,4 @@
+TEMPLATE = app
 TARGET = bootscreen
 
 HEADERS += bootscreen.h \
@@ -8,13 +9,24 @@ SOURCES += bootscreen.cpp \
 QT += maemo5
 
 
-install_app.commands = $(INSTALL_PROGRAM) $(TARGET) $(DESTDIR)/opt/bootscreen/$(QMAKE_TARGET)
-install_cfg.commands = $(INSTALL_FILE) data/$(QMAKE_TARGET).conf $(DESTDIR)/opt/bootscreen/$(QMAKE_TARGET).conf
-install_dsk.commands = $(INSTALL_FILE) data/$(QMAKE_TARGET).desktop $(DESTDIR)/usr/share/applications/hildon/$(QMAKE_TARGET).desktop
-install_sd.commands = $(INSTALL_FILE) data/$(QMAKE_TARGET).sudoers $(DESTDIR)/etc/sudoers.d/$(QMAKE_TARGET).sudoers
-install_evd.commands = $(INSTALL_FILE) data/$(QMAKE_TARGET) $(DESTDIR)/etc/event.d/$(QMAKE_TARGET)
-install_scr.commands = $(INSTALL_FILE) script/$(QMAKE_TARGET) $(DESTDIR)/usr/bin/$(QMAKE_TARGET)
-install_i48.commands = $(INSTALL_FILE) data/$(QMAKE_TARGET)_48.png $(DESTDIR)/usr/share/icons/hicolor/48x48/apps/$(QMAKE_TARGET).png
-install_i64.commands = $(INSTALL_FILE) data/$(QMAKE_TARGET)_64.png $(DESTDIR)/usr/share/icons/hicolor/64x64/apps/$(QMAKE_TARGET).png
-install.depends = $(TARGET) install_app install_dsk install_sd install_evd install_scr install_i48 install_i64
-QMAKE_EXTRA_TARGETS += install install_app install_dsk install_sd install_evd install_scr install_i48 install_i64
+target.path = $$(DESTDIR)/opt/bootscreen
+plugin.path = $$system(pkg-config hildon-control-panel --variable=pluginlibdir)
+plugin.files = ../plugin/libbooscreentpanelplugin.so
+desktop.path = $$system(pkg-config hildon-control-panel --variable=plugindesktopentrydir)
+desktop.files = ../data/$${TARGET}.desktop
+config.path = $$(DESTDIR)/opt/bootscreen
+config.files = ../data/$${TARGET}.conf
+sudoers.path = $$(DESTDIR)/etc/sudoers.d
+sudoers.files = ../data/$${TARGET}.sudoers
+upstart.path = $$(DESTDIR)/etc/event.d
+upstart.files = ../data/$${TARGET}
+script.path = $$(DESTDIR)/usr/bin
+script.files = ../script/$${TARGET}
+icon48.path = $$(DESTDIR)/usr/share/icons/hicolor/48x48/apps
+icon48.files = ../data/icons/48x48/$${TARGET}.png
+icon64.path = $$(DESTDIR)/usr/share/icons/hicolor/64x64/apps
+icon64.files = ../data/icons/64x64/$${TARGET}.png
+
+INSTALLS += target plugin desktop config sudoers upstart script icon48 icon64
+
+