forked from snapcrafters/eclipse
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsnapcraft.yaml.template_confined
More file actions
126 lines (116 loc) · 3.61 KB
/
snapcraft.yaml.template_confined
File metadata and controls
126 lines (116 loc) · 3.61 KB
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
ename: !- $env[ECLIPSE_PACKAGE]
eprefix: !- $env[SNAP_PREFIX]
name: !? $_.eprefix + $_.ename
base: core24
epackages: !- $import('eclipse-packages.yaml')
version: !? .epackages.latest
summary: Extensible Tool Platform and Java IDE
description:
Eclipse provides IDEs and platforms for nearly every language and architecture.
We are famous for our Java IDE, C/C++, JavaScript and PHP IDEs built on extensible
platforms for creating desktop, Web and cloud IDEs. These platforms deliver the most
extensive collection of add-on tools available for software developers.
grade: stable
confinement: strict
compression: lzo
platforms:
amd64:
build-on: [amd64]
build-for: [amd64]
arm64:
build-on: [arm64]
build-for: [arm64]
apps:
!? $_.name:
command: bin/eclipse-wrapper
extensions: [gnome]
desktop: eclipse.desktop
environment:
## https://docs.gtk.org/glib/running.html#environment-variables
G_MESSAGES_DEBUG: all
## https://docs.mesa3d.org/envvars.html
LIBGL_DEBUG: 1
DRI_PRIME_DEBUG: 1
MESA_DEBUG: 1
MESA_VK_DEVICE_SELECT_DEBUG: 1
# AMD_DEBUG: all
## https://trac.webkit.org/wiki/EnvironmentVariables
WEBKIT_DEBUG: all
plugs:
- dot-gitconfig
- dot-m2
- home # suppose checked out sources here
- network
- network-bind
- hugepages-control
- ssh-keys
plugs:
dot-gitconfig:
interface: personal-files
write:
- $HOME/.gitconfig
dot-m2:
interface: personal-files
write:
- $HOME/.m2
parts:
eclipse:
plugin: dump
source-type: tar
source:
# TODO use for loop here
# TODO use source-checksum once supported in multiarch setting
- on amd64: !? .epackages[$_.version][$_.ename].amd64.source
- on arm64: !? .epackages[$_.version][$_.ename].arm64.source
build-attributes:
- no-patchelf
permissions:
- mode: '555'
after:
- eclipse_deps
organize:
'configuration': 'usr/lib/eclipse/configuration'
'dropins': 'usr/lib/eclipse/dropins'
'features': 'usr/lib/eclipse/features'
'p2': 'usr/lib/eclipse/p2'
'plugins': 'usr/lib/eclipse/plugins'
'readme': 'usr/lib/eclipse/readme'
'.eclipseproduct': 'usr/lib/eclipse/.eclipseproduct'
'artifacts.xml': 'usr/lib/eclipse/artifacts.xml'
'eclipse': 'usr/lib/eclipse/eclipse'
'eclipse.ini': 'usr/lib/eclipse/eclipse.ini'
'icon.xpm': 'usr/lib/eclipse/icon.xpm'
override-prime: |
craftctl default
rm -r $SNAPCRAFT_PRIME/usr/lib/eclipse/plugins/com.sun.jna_*v*/com/sun/jna/aix*/
rm -r $SNAPCRAFT_PRIME/usr/lib/eclipse/plugins/com.sun.jna_*v*/com/sun/jna/darwin*/
rm -r $SNAPCRAFT_PRIME/usr/lib/eclipse/plugins/com.sun.jna_*v*/com/sun/jna/dragonflybsd*/
rm -r $SNAPCRAFT_PRIME/usr/lib/eclipse/plugins/com.sun.jna_*v*/com/sun/jna/freebsd*/
rm -r $SNAPCRAFT_PRIME/usr/lib/eclipse/plugins/com.sun.jna_*v*/com/sun/jna/openbsd*/
rm -r $SNAPCRAFT_PRIME/usr/lib/eclipse/plugins/com.sun.jna_*v*/com/sun/jna/sunos*/
rm -r $SNAPCRAFT_PRIME/usr/lib/eclipse/plugins/com.sun.jna_*v*/com/sun/jna/win32*/
wrappers:
plugin: dump
source: snap/local/wrappers
organize:
eclipse_confined: bin/eclipse-wrapper
eclipse_desktop:
plugin: dump
source: snap/gui
eclipse_deps:
plugin: nil
stage-snaps:
- git-confined
layout:
/usr/local/bin:
bind: $SNAP/usr/bin
/usr/libexec/git-core:
symlink: $SNAP/usr/libexec/git-core
/usr/share/git-core:
symlink: $SNAP/usr/share/git-core
/usr/lib/eclipse:
bind: $SNAP/usr/lib/eclipse
lint:
ignore:
- library:
- usr/lib/**/*.so*