-
Notifications
You must be signed in to change notification settings - Fork 0
/
snapcraft.yaml
84 lines (75 loc) · 2.61 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
name: umlet-standalone
title: UMLet
version: '15.1'
summary: Free UML Tool for Fast UML Diagrams
description: |
UMLet is a free, open-source UML tool with a simple user interface: draw UML diagrams fast,
build sequence and activity diagrams from plain text, export diagrams to eps, pdf, jpg, svg,
and clipboard, share diagrams using Eclipse, and create new, custom UML elements.
This is a community build based on the standalone executable without support by the original
authors.
Official downloads are available here: https:/www.umlet.com
base: core20
grade: stable
confinement: strict
architectures: [amd64]
compression: lzo
license: GPL-3.0-only
environment:
JAVA_HOME: $SNAP/usr/lib/jvm/java-11-openjdk-amd64/bin
JAVA_CMD: $SNAP/usr/lib/jvm/java-11-openjdk-amd64/bin/java
UMLET_JAVA_OPTS: -Duser.home=$SNAP_USER_DATA
UMLET_HOME: $SNAP/Umlet
PATH: $SNAP/usr/lib/jvm/java-11-openjdk-amd64/bin:$SNAP/Umlet:$PATH
LD_LIBRARY_PATH: $LD_LIBRARY_PATH:$SNAP/usr/lib
apps:
umlet-standalone:
command: Umlet/umlet.sh
desktop: usr/share/applications/umlet-standalone.desktop
extensions: [gnome-3-38]
plugs:
- home
- removable-media
- optical-drive
- unity7
- network
- mount-observe
- process-control
- network-bind
- network-observe
parts:
get-jar:
plugin: nil
build-packages:
- wget
- unzip
override-build: |
wget https://www.umlet.com/download/umlet_15_1/umlet-standalone-15.1.zip
unzip -o -d $SNAPCRAFT_PART_INSTALL umlet*.zip
chmod +x $SNAPCRAFT_PART_INSTALL/Umlet/umlet.sh
mkdir -p ${SNAPCRAFT_PRIME}/usr/share/applications
cp -r ${SNAPCRAFT_PART_INSTALL}/Umlet/img/umlet_logo.png ${SNAPCRAFT_PRIME}/usr/share/applications/umlet-standalone.png
override-prime: |
echo '[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=UMLet
GenericName=UMLet
Comment=Free UML Tool for Fast UML Diagrams
Exec=umlet-standalone
Icon=usr/share/applications/umlet-standalone.png
Terminal=false
Categories=Development;
StartupNotify=true' > ${SNAPCRAFT_PRIME}/usr/share/applications/umlet-standalone.desktop
snapcraftctl prime
rm ${SNAPCRAFT_STAGE}/usr/lib/jvm/java-11-openjdk-amd64/lib/security/blacklisted.certs
touch ${SNAPCRAFT_STAGE}/usr/lib/jvm/java-11-openjdk-amd64/lib/security/blacklisted.certs
packages:
plugin: nil
stage-packages:
- openjdk-11-jre
- ca-certificates
- ca-certificates-java
build-packages:
- ca-certificates
- ca-certificates-java