source: josm/trunk/native/snapcraft.yaml@ 18968

Last change on this file since 18968 was 17976, checked in by Don-vip, 3 years ago

move packaging/distribution files to native folder

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