-
Notifications
You must be signed in to change notification settings - Fork 6
/
snapcraft.yaml
82 lines (77 loc) · 2.05 KB
/
snapcraft.yaml
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: openexr-viewer
adopt-info: openexr-viewer
confinement: strict
base: core18
grade: stable
# Currently kde-neon does not support anything else
architectures:
- build-on: amd64
run-on: amd64
parts:
openexr-viewer:
plugin: cmake
configflags:
- "-DImath_DIR=/root/stage/usr/lib/x86_64-linux-gnu/cmake/Imath/"
- "-DOpenEXR_DIR=/root/stage/usr/lib/x86_64-linux-gnu/cmake/OpenEXR/"
- "-DCMAKE_BUILD_TYPE=Release"
- "-DCMAKE_INSTALL_PREFIX=/usr"
source: .
override-pull: |
snapcraftctl pull
sed -i.bak -e 's|Icon=openexr-viewer|Icon=${SNAP}/meta/gui/openexr-viewer.png|g' deploy/linux/openexr-viewer.desktop
parse-info:
- usr/share/metainfo/openexr-viewer.metainfo.xml
after:
- openexr-lib
build-snaps:
- kde-frameworks-5-core18-sdk
- kde-frameworks-5-core18
build-packages:
- libegl1-mesa-dev
stage-packages:
- libegl1-mesa
cmake:
plugin: dump
source: https://github.com/Kitware/CMake/releases/download/v3.20.2/cmake-3.20.2-linux-x86_64.tar.gz
openexr-lib:
plugin: cmake
source: https://github.com/AcademySoftwareFoundation/openexr.git
source-tag: v3.0.1
after:
- cmake
configflags:
- "-DOPENEXR_INSTALL_EXAMPLES=OFF"
- "-DOPENEXR_INSTALL_TOOLS=OFF"
- "-DCMAKE_INSTALL_PREFIX=/usr"
build-packages:
- zlib1g-dev
stage-packages:
- zlib1g
plugs:
gtk-3-themes:
interface: content
target: $SNAP/share/themes
default-provider: gtk-common-themes
icon-themes:
interface: content
target: $SNAP/share/icons
default-provider: gtk-common-themes
sound-themes:
interface: content
target: $SNAP/share/sounds
default-provider: gtk-common-themes
apps:
openexr-viewer:
common-id: openexr-viewer
command: openexr-viewer
desktop: usr/share/applications/openexr-viewer.desktop
extensions:
- kde-neon
environment:
QT_QPA_PLATFORMTHEME: gtk3
plugs:
- home
- gsettings
- network
- network-bind
- removable-media