-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsnapcraft.yaml
112 lines (109 loc) · 2.73 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
name: lenna-qt
adopt-info: lenna-qt
version: git
summary: This is the Lenna Graphical User Interface.
description: |
qt based lenna desktop app for converting images.
confinement: strict
base: core20
license: MIT
icon: deploy/images/logo512.png
parts:
lenna-qt:
plugin: cmake
source: https://github.com/lenna-project/lenna-qt.git
source-type: git
parse-info: [usr/share/lenna-qt/metainfo/lenna-qt.appdata.xml]
build-snaps:
- kde-frameworks-5-qt-5-15-core20-sdk
cmake-parameters:
- "-DCMAKE_INSTALL_PREFIX=/usr"
- "-DCMAKE_BUILD_TYPE=Release"
- "-DCMAKE_FIND_ROOT_PATH=/usr\\;/root/stage\\;/snap/kde-frameworks-5-qt-5-15-core20-sdk/current"
override-pull: |
snapcraftctl pull
version="git$(git describe --tags | sed 's,^v[^-]\+,,')"
snapcraftctl set-version "$version"
sed -i 's|^Icon=.*|Icon=${SNAP}/meta/gui/icon.png|g' deploy/lenna-qt.desktop
build-packages:
- g++
- libexiv2-dev
- libqt5webkit5-dev
- libssl-dev
- pkg-config
- qt5keychain-dev
- qttools5-dev
- libopencv-dev
stage-packages:
- libaec0
- libarmadillo9
- libarpack2
- libatk-bridge2.0-0
- libatk1.0-0
- libatspi2.0-0
- libcfitsio8
- libcharls2
- libcurl3-gnutls
- libdap25
- libdapclient6v5
- libepsilon1
- libexiv2-27
- libfreexl1
- libfyba0
- libgdal26
- libgdcm3.0
- libgeos-3.8.0
- libgeos-c1v5
- libgeotiff5
- libgfortran5
- libgif7
- libgtk-3-0
- libhdf4-0-alt
- libhdf5-103
- libilmbase24
- libkmlbase1
- libkmldom1
- libkmlengine1
- libnetcdf15
- libnghttp2-14
- libogdi4.1
- libopencv-calib3d4.2
- libopencv-core4.2
- libopencv-features2d4.2
- libopencv-flann4.2
- libopencv-highgui4.2
- libopencv-imgcodecs4.2
- libopencv-imgproc4.2
- libopencv-objdetect4.2
- libopencv-videoio4.2
- libopenexr24
- libproj15
- libqhull7
- libquadmath0
- librtmp1
- libspatialite7
- libssh-4
- libsuperlu5
- libsz2
- libtbb2
- liburiparser1
- libxerces-c3.2
- libxinerama1
- odbcinst1debian2
apps:
lenna-qt:
common-id: app.lenna.lenna-qt
desktop: usr/share/lenna-qt/applications/lenna-qt.desktop
command: usr/bin/lenna-qt
plugs:
- kde-frameworks-5-plug
- home
- network
- opengl
- wayland
- x11
extensions:
- kde-neon
environment:
LENNA_PLUGINS: $SNAP/usr/lib/
LD_LIBRARY_PATH: "$LD_LIBRARY_PATH:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/blas:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/lapack"