From e375f0e9cac29114b391fc3e5d80228fef6886dd Mon Sep 17 00:00:00 2001 From: NeoTheFox Date: Mon, 9 Mar 2015 19:12:23 +0300 Subject: [PATCH] More tweaks for PPA --- RepRaptor.pro | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/RepRaptor.pro b/RepRaptor.pro index a040395..4478a50 100644 --- a/RepRaptor.pro +++ b/RepRaptor.pro @@ -15,16 +15,27 @@ CONFIG += static unix { + #VARIABLES + isEmpty(PREFIX) + { + PREFIX = /usr/local + } + BINDIR = $$PREFIX/bin + DATADIR =$$PREFIX/share + + DEFINES += DATADIR=\\\"$$DATADIR\\\" PKGDATADIR=\\\"$$PKGDATADIR\\\" + + #MAKE INSTALL + + INSTALLS += target desktop service iconxpm icon26 icon48 icon64 + + target.path =$$BINDIR + + desktop.path = $$DATADIR/applications + desktop.files += $${TARGET}.desktop + + icon.path = $$DATADIR/icons icon.files += icons/icon.png - icon.path = /usr/share/icons - - desktop.files += RepRaptor.desktop - desktop.path = /usr/share/applications - - repraptor.files += RepRaptor - repraptor.path = /usr/bin - - INSTALLS+= icon desktop repraptor } SOURCES += main.cpp\