Blob Blame History Raw
From 26587ab1da059ccda4aa1c415e4c50038f36871d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Robert-Andr=C3=A9=20Mauchin?= <zebob.m@gmail.com>
Date: Tue, 16 Oct 2018 00:22:37 +0200
Subject: [PATCH] Use of a custom prefix for installation

---
 orion.pro | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/orion.pro b/orion.pro
index 9e2bde7..def79f5 100644
--- a/orion.pro
+++ b/orion.pro
@@ -13,6 +13,10 @@ CONFIG += c++11
 
 TARGET = orion
 
+isEmpty(PREFIX){
+    PREFIX = /usr
+}
+
 VERSION = 1.6.6
 DEFINES += APP_VERSION=\\\"v$$VERSION\\\"
 DEFINES += APP_NAME=\\\"Orion\\\"
@@ -126,17 +130,17 @@ linux:!android: {
     HEADERS += src/notification/notificationsender.h
     SOURCES +=  src/notification/notificationsender.cpp
 
-    target.path = /usr/bin
+    target.path = $$PREFIX/bin
     INSTALLS += target
 
     _appdata.files = distfiles/Orion.appdata.xml
-    _appdata.path = /usr/local/share/metainfo
+    _appdata.path = $$PREFIX/share/metainfo
 
     _desktop.files = distfiles/Orion.desktop
-    _desktop.path = /usr/local/share/applications
+    _desktop.path = $$PREFIX/share/applications
 
     _icon.files = distfiles/orion.svg
-    _icon.path = /usr/local/share/icons
+    _icon.path = $$PREFIX/share/icons/hicolor/scalable/apps
 
     INSTALLS += _appdata _desktop _icon
 }
-- 
2.19.1