mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-25 10:03:03 +01:00
9347e82d80
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
36 lines
1.1 KiB
Text
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}
|
|
}
|
|
}
|
|
}
|