-
Notifications
You must be signed in to change notification settings - Fork 0
/
snapcraft.yaml
86 lines (79 loc) · 2.34 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
base: core20
name: freeplane-mindmapping
summary: Application for Mind Mapping, Knowledge and Project Management
description: |
Application for Mind Mapping, Knowledge Management, Project Management.
Develop, organize and communicate your ideas and knowledge in the most
effective way.
Features
- Mind Mapping
- Knowledge Management
- Project Management
- Presentation
- Outline
- Writing
Homepage: https://www.freeplane.org
confinement: strict
grade: stable
icon: data/gui/freeplane.png
adopt-info: freeplane-mindmapping
apps:
freeplane-mindmapping:
command: bin/desktop-launch $SNAP/freeplane/freeplane.sh
plugs:
- cups-control
- desktop
- desktop-legacy
- home
- network
- x11
environment:
_JAVA_OPTIONS: -Duser.home=$SNAP_USER_DATA
JAVA_HOME: $SNAP/usr/lib/jvm/default-java
PATH: $SNAP/usr/lib/jvm/default-java/bin:$SNAP/usr/lib/jvm/default-java/jre/bin:$PATH
parts:
desktop-glib:
source: https://github.com/ubuntu/snapcraft-desktop-helpers.git
source-subdir: glib-only
plugin: make
build-packages:
- libglib2.0-dev
stage-packages:
- adwaita-icon-theme
- dmz-cursor-theme
- gnome-themes-standard
- libgdk-pixbuf2.0-0
- libglib2.0-bin
- libgtk2.0-0
- libxkbcommon0
- light-themes
- locales-all
- shared-mime-info
- ttf-ubuntu-font-family
- xdg-user-dirs
jdk:
plugin: nil
stage-packages:
- default-jre
filesets:
jdk-bits: [-usr/lib/jvm/default-java/bin,
-usr/lib/jvm/default-java/include,
-usr/lib/jvm/default-java/lib,
-usr/lib/jvm/java-11-openjdk-amd64/lib/security/blacklisted.certs,
-usr/share/doc]
stage:
- $jdk-bits
freeplane-mindmapping:
after: [desktop-glib, jdk]
plugin: nil
source: .
override-build: |
mkdir -p $SNAPCRAFT_PART_INSTALL/meta/gui
unzip freeplane*.zip -d $SNAPCRAFT_PART_INSTALL/
mv $SNAPCRAFT_PART_INSTALL/freeplane-* $SNAPCRAFT_PART_INSTALL/freeplane
chmod +x $SNAPCRAFT_PART_INSTALL/freeplane/freeplane.sh
cp ./data/gui/* $SNAPCRAFT_PART_INSTALL/meta/gui/
snapcraftctl set-version $(ls freeplane*.zip|sed 's/.*-\([^-]\+\).zip/\1/'|tr -s '_' '-')
build-packages:
- unzip
- default-jre