forked from snapcrafters/eclipse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsnapcraft.yaml.template_confined
130 lines (120 loc) · 3.63 KB
/
snapcraft.yaml.template_confined
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
127
128
129
130
ename: !- $env[ECLIPSE_PACKAGE]
name: !? .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
apps:
!? .ename:
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:
- personal-sourcedir
- personal-workspace
- personal-gitconfig
- personal-sshid
- personal-maven-cache
- network
- network-bind
plugs:
personal-sourcedir:
interface: personal-files
write:
- $HOME/projs
personal-workspace:
interface: personal-files
write:
- $HOME/eclipse-workspace
personal-gitconfig:
interface: personal-files
write:
- $HOME/.gitconfig
personal-sshid:
interface: ssh-keys
personal-maven-cache:
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][$_.name].amd64.source
- on arm64: !? .epackages[$_.version][$_.name].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/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*