-
Notifications
You must be signed in to change notification settings - Fork 37
/
cmst.pro
executable file
·56 lines (49 loc) · 1.66 KB
/
cmst.pro
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Need a make file to make other make files
TEMPLATE = subdirs
SUBDIRS = ./apps/cmstapp ./apps/rootapp
# cmst build variables
include(cmst.pri)
# non-application files which need to be installed
#
# documentation (manpage)
documentation.path = $$CMST_DOC_PATH/man1
documentation.files = ./misc/manpage/cmst.1.gz
documentation.CONFIG = no_check_exist
documentation.extra = gzip -kf ./misc/manpage/cmst.1
INSTALLS += documentation
# application icons -
exists(./images/application/cmst-icon.png) {
LIST = 16 20 22 24 32 36 40 48 64 72 96 128 192 256 384 512
for(a, LIST) {
icon$${a}.path = /usr/share/icons/hicolor/$${a}x$${a}/apps
icon$${a}.files = ./images/application/$${a}x$${a}/cmst.png
INSTALLS += icon$${a}
}
exists(./images/application/scalable/cmst.svg) {
iconsvg.path = /usr/share/icons/hicolor/scalable/apps
iconsvg.files = ./images/application/scalable/cmst.svg
INSTALLS += iconsvg
}
} else {
system(sed -i 's/Icon=cmst/Icon=preferences-system-network/g' "./misc/desktop/cmst.desktop")
system(sed -i 's/Icon=cmst/Icon=preferences-system-network/g' "./misc/desktop/cmst-autostart.desktop")
}
# license
license.path = /usr/share/licenses/cmst
license.files = ./text/LICENSE
INSTALLS += license
# appdata
appdata.path = /usr/share/metainfo
appdata.files = ./misc/appdata/org.cmst.cmst.appdata.xml
INSTALLS += appdata
# desktop file
desktop.path = /usr/share/applications
desktop.files = ./misc/desktop/cmst.desktop
!isEmpty(DESTDIR) {
desktop.extra = gtk-update-icon-cache /usr/share/icons/hicolor
}
INSTALLS += desktop
# autostart desktop file
autostart.path = /usr/share/cmst/autostart
autostart.files = ./misc/desktop/cmst-autostart.desktop
INSTALLS += autostart