slackbuilds_ponce/academic/scidavis/desktop_integration.txt
Fellype do Nascimento 9347e82d80
academic/scidavis: Added (data analysis and visualization).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
2016-12-16 04:41:23 +07:00

36 lines
1.1 KiB
Text

###################### DESKTOP INTEGRATION ##################################
unix {
desktop_entry.files = scidavis.desktop
desktop_entry.path = "$$INSTALLBASE/share/applications"
mime_package.files = scidavis.xml
mime_package.path = "$$INSTALLBASE/share/mime/packages"
#deprecated
mime_link.files = x-sciprj.desktop
mime_link.path = "$$INSTALLBASE/share/mimelnk/application"
contains(INSTALLS, icons) {
# scalable icon
icons.files = icons/scidavis.svg
icons.path = "$$INSTALLBASE/share/icons/hicolor/scalable/apps"
# hicolor icons for different resolutions
resolutions = 16 22 32 48 64 128
for(res, resolutions) {
eval(icon_hicolor_$${res}.files = icons/hicolor-$${res}/scidavis.png)
eval(icon_hicolor_$${res}.path = "$$INSTALLBASE/share/icons/hicolor/$${res}x$${res}/apps")
INSTALLS += icon_hicolor_$${res}
}
# locolor icons for different resolutions
resolutions = 16 22 32
for(res, resolutions) {
eval(icon_locolor_$${res}.files = icons/locolor-$${res}/scidavis.png)
eval(icon_locolor_$${res}.path = "$$INSTALLBASE/share/icons/locolor/$${res}x$${res}/apps")
INSTALLS += icon_locolor_$${res}
}
}
}