New package (2nd attempt) OBS-URL: https://build.opensuse.org/request/show/875275 OBS-URL: https://build.opensuse.org/package/show/science/Astree?expand=0&rev=1
39 lines
1.1 KiB
Diff
39 lines
1.1 KiB
Diff
From c9a18d6d2e899ff93eddea6499f7ce335d949696 Mon Sep 17 00:00:00 2001
|
|
From: Luigi Baldoni <aloisio@gmx.com>
|
|
Date: Fri, 26 Feb 2021 07:34:35 +0100
|
|
Subject: [PATCH] Make packaging easier
|
|
|
|
---
|
|
main.pro | 22 ++++++++++++++++++++++
|
|
1 file changed, 22 insertions(+)
|
|
create mode 100644 main.pro
|
|
|
|
diff --git a/main.pro b/main.pro
|
|
new file mode 100644
|
|
index 0000000..5a7651c
|
|
--- /dev/null
|
|
+++ b/main.pro
|
|
@@ -0,0 +1,22 @@
|
|
+VPATH += $$system(pwd)/src/gui
|
|
+INCLUDEPATH += $$system(pwd)/src $$system(pwd)/src/gui
|
|
+include(src/gui/Astree.pro)
|
|
+DESTDIR=.
|
|
+CONFIG(release, debug|release):TARGET = astree
|
|
+
|
|
+unix:!macx {
|
|
+ isEmpty(PREFIX) {
|
|
+ PREFIX = /usr
|
|
+ }
|
|
+ target.path = $$PREFIX/bin
|
|
+ desktop.path = $$PREFIX/share/applications
|
|
+ desktop.files = astree.desktop
|
|
+ icon.target = $$OUT_PWD/astree.png
|
|
+ icon.path = $(INSTALL_ROOT)/$$PREFIX/share/pixmaps
|
|
+ icon.commands = $(COPY_FILE) Astree.png $$icon.target \
|
|
+ && $(MKDIR) $$icon.path \
|
|
+ && $(INSTALL_FILE) $$icon.target $$icon.path
|
|
+ appdata.path = $$PREFIX/share/appdata
|
|
+ appdata.files = astree.appdata.xml
|
|
+ INSTALLS += target desktop icon appdata
|
|
+}
|