mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 23:18:58 +02:00
47 lines
1.3 KiB
Bash
47 lines
1.3 KiB
Bash
SUMMARY="An extensible editor for OpenStreetMap"
|
|
DESCRIPTION="JOSM is the \"Java OpenStreetMap Editor\". It is a feature-rich editor \
|
|
for the experienced OSM mapper. It requires some configuration efforts. But if you \
|
|
intend to become a great OSM mapper, it's worth the time you need to get used to it."
|
|
HOMEPAGE="https://josm.openstreetmap.de/"
|
|
COPYRIGHT="2006-2022 Immanuel Scholz, Dirk Stöcker"
|
|
LICENSE="GNU GPL v2"
|
|
REVISION="1"
|
|
SOURCE_URI="https://josm.openstreetmap.de/download/josm-snapshot-$portVersion.jar#noarchive"
|
|
CHECKSUM_SHA256="e92e84ee78130815dbd1ea4f7d8c48b302ef7e6f6bd90974c203acfcfc699883"
|
|
ADDITIONAL_FILES="josm.hvif"
|
|
|
|
ARCHITECTURES="any"
|
|
DISABLE_SOURCE_PACKAGE="true"
|
|
|
|
PROVIDES="
|
|
josm_bin = $portVersion
|
|
app:josm = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku
|
|
java:environment == 8
|
|
"
|
|
|
|
BUILD_PREREQUIRES="
|
|
"
|
|
|
|
INSTALL()
|
|
{
|
|
josmDir=$appsDir/JOSM
|
|
mkdir -p $josmDir/java
|
|
|
|
cp josm-snapshot-$portVersion.jar $josmDir/java/josm.jar
|
|
|
|
cat << EOF > $josmDir/josm.sh
|
|
#!/bin/sh -l
|
|
APPDIR="\$(dirname -- "\$(readlink -f -- "\${0}")" )"
|
|
CLASSPATH="\${APPDIR}/java/josm.jar"
|
|
\${JDK8_HOME}/bin/java -cp "\${CLASSPATH}" -Djosm.restart=true org.openstreetmap.josm.gui.MainApplication "\$@"
|
|
EOF
|
|
chmod 755 $josmDir/josm.sh
|
|
|
|
addattr -t icon -f $portDir/additional-files/josm.hvif \
|
|
"BEOS:ICON" "$josmDir/josm.sh"
|
|
addAppDeskbarSymlink $josmDir/josm.sh 'JOSM'
|
|
}
|