summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBeej Jorgensen2015-07-28 17:13:31 -0700
committerBeej Jorgensen2015-07-28 17:13:31 -0700
commitdf846502ef35677518d09dd1f26fd8aa460888b3 (patch)
tree722b09374a59bc23bddd74c0ef2f25c29ca6cb35
downloadaur-df846502ef35677518d09dd1f26fd8aa460888b3.tar.gz
Version 2014112501-3
-rw-r--r--.SRCINFO27
-rw-r--r--PKGBUILD37
-rw-r--r--josm18
-rw-r--r--josm.conf.d4
-rw-r--r--josm.desktop8
-rw-r--r--josm.jnlp27
6 files changed, 121 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..fe67b343208
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,27 @@
+pkgbase = josm-javaws
+ pkgdesc = An editor for OpenStreetMap written in Java, Java Web Start version
+ pkgver = 2014112501
+ pkgrel = 3
+ url = http://josm.openstreetmap.de/
+ arch = any
+ license = GPL
+ depends = java-runtime
+ depends = java-web-start
+ depends = libxtst
+ depends = ttf-font
+ provides = josm
+ conflicts = josm
+ backup = etc/conf.d/josm
+ source = https://josm.openstreetmap.de/download/josm.jnlp
+ source = http://josm.openstreetmap.de/browser/trunk/images/logo.png?format=raw
+ source = josm.desktop
+ source = josm
+ source = josm.conf.d
+ sha256sums = 6b33e9cce9f61375312c504e7f4328ce9663705bc4fa813effd1fb8b46c59dc0
+ sha256sums = 40c72fcb1378fbc939b361af802f0aa0eda8688fa9541e1ac2bcf7524c0628e1
+ sha256sums = edfb2cbf2aa7e6582b4d43cd402ea58be7990702e5ffffc3ff7afdc518c28ca9
+ sha256sums = 345bc3e4436f93f4980051ccec226224fa8d6b513cde8da98294cc3b4bcdc9dc
+ sha256sums = c86a73251eed42fcb129ae9b88a0ee3cf03d8d00a9385519ad536d5af0907663
+
+pkgname = josm-javaws
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..9d45f901994
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer: Brian "Beej Jorgensen" Hall <beej@beej.us>
+
+pkgname=josm-javaws
+pkgver=2014112501
+pkgrel=3
+pkgdesc="An editor for OpenStreetMap written in Java, Java Web Start version"
+arch=('any')
+url="http://josm.openstreetmap.de/"
+license=('GPL')
+depends=('java-runtime' 'java-web-start' 'libxtst' 'ttf-font')
+backup=('etc/conf.d/josm')
+provides=('josm')
+conflicts=('josm')
+source=('https://josm.openstreetmap.de/download/josm.jnlp'
+ 'http://josm.openstreetmap.de/browser/trunk/images/logo.png?format=raw'
+ 'josm.desktop'
+ 'josm'
+ 'josm.conf.d')
+
+sha256sums=('6b33e9cce9f61375312c504e7f4328ce9663705bc4fa813effd1fb8b46c59dc0'
+ '279c03847dd270a2e9fc07937498af5418960e3636f8f9919125d60805b799a4'
+ 'edfb2cbf2aa7e6582b4d43cd402ea58be7990702e5ffffc3ff7afdc518c28ca9'
+ '345bc3e4436f93f4980051ccec226224fa8d6b513cde8da98294cc3b4bcdc9dc'
+ 'c86a73251eed42fcb129ae9b88a0ee3cf03d8d00a9385519ad536d5af0907663')
+
+package() {
+ cd "${srcdir}"
+
+ install -D -m644 josm.jnlp "${pkgdir}"/usr/share/java/josm/josm.jnlp
+ install -D -m644 "${srcdir}"/josm.desktop ${pkgdir}/usr/share/applications/josm.desktop
+ install -D -m644 'logo.png?format=raw' "${pkgdir}"/usr/share/pixmaps/josm.png
+ install -D -m755 josm "${pkgdir}"/usr/bin/josm
+ install -Dm644 "${srcdir}"/josm.conf.d "${pkgdir}"/etc/conf.d/josm
+}
+
+# vim:set ts=2 sw=2 et:
+
diff --git a/josm b/josm
new file mode 100644
index 00000000000..6f66198292f
--- /dev/null
+++ b/josm
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+JOSM_ARGS=""
+JAWS_ARGS=""
+JAWSFILE="/usr/share/java/josm/josm.jnlp"
+
+[ -f /etc/conf.d/josm ] && . /etc/conf.d/josm
+
+for a in ${JOSM_ARGS}; do
+ JAWS_ARGS="$JAWS_ARGS -J${a}"
+done
+
+while [ $# -gt 0 ]; do
+ JAWS_ARGS="$JAWS_ARGS -arg \"$1\""
+ shift
+done
+
+eval "javaws ${JAWS_ARGS} ${JAWSFILE}"
diff --git a/josm.conf.d b/josm.conf.d
new file mode 100644
index 00000000000..8a84750c218
--- /dev/null
+++ b/josm.conf.d
@@ -0,0 +1,4 @@
+#
+# Parameters for JOSM editor
+#
+#JOSM_ARGS="-Xmx800M"
diff --git a/josm.desktop b/josm.desktop
new file mode 100644
index 00000000000..749b62a0e45
--- /dev/null
+++ b/josm.desktop
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Name=JOSM
+Comment=An editor for OpenStreetMap written in Java
+Exec=josm
+Icon=josm
+Terminal=false
+Type=Application
+Categories=Graphics;
diff --git a/josm.jnlp b/josm.jnlp
new file mode 100644
index 00000000000..7d18394a4ce
--- /dev/null
+++ b/josm.jnlp
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE jnlp PUBLIC "-//Sun Microsystems, Inc//DTD JNLP Descriptor 6.0//EN" "http://java.sun.com/dtd/JNLP-6.0.dtd">
+<jnlp spec="6.0+" codebase="https://josm.openstreetmap.de/download/" href="josm.jnlp">
+ <information>
+ <title>JOSM</title>
+ <vendor>OpenStreetMap</vendor>
+ <homepage href="https://josm.openstreetmap.de"/>
+ <description>Java OpenStreetMap editor</description>
+ <description kind="one-line">JOSM</description>
+ <description kind="tooltip">JOSM</description>
+ <icon href="https://josm.openstreetmap.de/svn/trunk/images/logo.png"/>
+ <offline-allowed/>
+ <shortcut>
+ <desktop/>
+ <menu/>
+ </shortcut>
+ </information>
+ <security>
+ <all-permissions/>
+ </security>
+ <resources>
+ <j2se version="1.6+"/>
+ <jar href="josm-tested.jar"/>
+ <property name="java.util.Arrays.useLegacyMergeSort" value="true"/>
+ </resources>
+ <application-desc main-class="JOSM"/>
+</jnlp> \ No newline at end of file