source: josm/trunk/snapcraft.yaml@ 11807

Last change on this file since 11807 was 11794, checked in by bastiK, 7 years ago

applied #14576 - Add snapcraft.yaml (patch by michael.vogt)

File size: 1.7 KB
Line 
1name: josm
2version: 0.git
3summary: Editor for OpenStreetMap
4description: |
5 JOSM is an editor for OpenStreetMap (OSM) written in Java.
6 The current version supports stand alone GPX tracks, GPX track data
7 from OSM database and existing nodes, line segments and metadata tags
8 from the OSM database.
9
10 OpenStreetMap is a project aimed squarely at creating and providing
11 free geographic data such as street maps to anyone who wants them.
12 The project was started because most maps you think of as free actually
13 have legal or technical restrictions on their use, holding back people
14 from using them in creative, productive or unexpected ways.
15confinement: strict
16grade: stable
17icon: linux/tested/usr/share/icons/hicolor/128x128/apps/josm.png
18
19apps:
20 josm:
21 command: josm-launch
22 desktop: josm.desktop
23 plugs: [unity7, network, home]
24
25parts:
26 local:
27 plugin: ant
28 ant-properties:
29 dist.dir: $SNAPCRAFT_PART_INSTALL
30 source: .
31 install: |
32 cp -a linux/tested/usr/share/applications/josm.desktop $SNAPCRAFT_PART_INSTALL/
33 cat<<'EOF' > $SNAPCRAFT_PART_INSTALL/josm-launch
34 #!/bin/sh
35 # ensure font-config is happy
36 export XDG_DATA_HOME=$SNAP/usr/share
37 export FONTCONFIG_PATH=$SNAP/etc/fonts/config.d
38 export FONTCONFIG_FILE=$SNAP/etc/fonts/fonts.conf
39 export HOME=$SNAP_USER_DATA
40 # ensure java is happy as well
41 export JRE_HOME=$SNAP/usr/lib/jvm/default-java/jre
42 export JAVA_HOME=$SNAP/usr/lib/jvm/default-java/jre
43 java -Duser.home=$SNAP_USER_DATA -jar $SNAP/josm-custom.jar
44 EOF
45 chmod +x $SNAPCRAFT_PART_INSTALL/josm-launch
46
Note: See TracBrowser for help on using the repository browser.