forked from JOSM/josm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
snapcraft.yaml
47 lines (43 loc) · 1.8 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
name: josm
version: 0.git
summary: Editor for OpenStreetMap
description: |
JOSM is an extensible editor for OpenStreetMap (OSM) written in Java.
It supports loading GPX tracks, background imagery and OSM data from
local sources as well as from online sources and allows to edit the
OSM data (nodes, ways and relations) and their metadata tags.
JOSM is open source and licensed under GPL.
OpenStreetMap is a project aimed squarely at creating and providing
free geographic data such as street maps to anyone who wants them.
The project was started because most maps you think of as free actually
have legal or technical restrictions on their use, holding back people
from using them in creative, productive or unexpected ways.
confinement: strict
grade: devel
icon: linux/tested/usr/share/icons/hicolor/128x128/apps/josm.png
apps:
josm:
command: josm-launch
desktop: josm.desktop
plugs: [unity7, network, home]
parts:
local:
plugin: ant
ant-properties:
dist.dir: $SNAPCRAFT_PART_INSTALL
source: .
install: |
cp -a linux/tested/usr/share/applications/josm.desktop $SNAPCRAFT_PART_INSTALL/
cat<<'EOF' > $SNAPCRAFT_PART_INSTALL/josm-launch
#!/bin/sh
# ensure font-config is happy
export XDG_DATA_HOME=$SNAP/usr/share
export FONTCONFIG_PATH=$SNAP/etc/fonts/config.d
export FONTCONFIG_FILE=$SNAP/etc/fonts/fonts.conf
export HOME=$SNAP_USER_DATA
# ensure java is happy as well
export JRE_HOME=$SNAP/usr/lib/jvm/default-java/jre
export JAVA_HOME=$SNAP/usr/lib/jvm/default-java/jre
java -Duser.home=$SNAP_USER_DATA -jar $SNAP/josm-custom.jar
EOF
chmod +x $SNAPCRAFT_PART_INSTALL/josm-launch