-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
10797a9
commit 0a5c827
Showing
4 changed files
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/sh | ||
java --add-exports=java.base/sun.security.action=ALL-UNNAMED \ | ||
--add-exports=java.desktop/com.sun.imageio.plugins.jpeg=ALL-UNNAMED \ | ||
--add-exports=java.desktop/com.sun.imageio.spi=ALL-UNNAMED \ | ||
-jar /usr/share/java/josm/josm.jar "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
diff --git a/native/linux/tested/etc/default/josm b/native/linux/tested/etc/default/josm | ||
index b646c4f..dc1d91a 100644 | ||
--- a/native/linux/tested/etc/default/josm | ||
+++ b/native/linux/tested/etc/default/josm | ||
@@ -7,3 +7,4 @@ | ||
# Enable OpenGL pipeline (2D graphic accelerators) | ||
#JAVA_OPTS="-Dsun.java2d.opengl=True ${JAVA_OPTS}" | ||
|
||
+JOSM_PATH=/usr/share/java/josm/josm.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Template file for 'josm' | ||
pkgname=josm | ||
version=19160 | ||
revision=1 | ||
hostmakedepends="subversion apache-ant openjdk11" | ||
depends="desktop-file-utils hicolor-icon-theme libXtst virtual?java-runtime" | ||
short_desc="Extensible editor for OpenStreetMap" | ||
maintainer="Joel Beckmeyer <joel@beckmeyer.us>" | ||
license="GPL-3.0-or-later" | ||
homepage="https://josm.openstreetmap.de/" | ||
changelog="https://josm.openstreetmap.de/wiki/Changelog" | ||
distfiles="https://github.com/JOSM/josm/archive/refs/tags/${version}-tested.tar.gz" | ||
checksum=3eba8073cb25b489ff5f312c3197190a12cdc54f3e4ab14e2b96e63e58bf6138 | ||
conf_files="/etc/default/josm" | ||
|
||
post_patch() { | ||
vsed -e "s,\(version.entry.commit.revision.*value=\"\).*\(\".*\),\1${version}\2,g" -i build.xml | ||
} | ||
|
||
do_build() { | ||
. /etc/profile | ||
ant clean dist | ||
} | ||
|
||
# adapted from https://gitlab.archlinux.org/archlinux/packaging/packages/josm/-/blob/71ea40e37da136f4c55126fb01ae6dac2a4fcb1d/PKGBUILD#L23 | ||
do_install() { | ||
vinstall dist/josm-custom.jar 644 usr/share/java/josm josm.jar | ||
|
||
vinstall native/linux/tested/usr/share/applications/org.openstreetmap.josm.desktop 644 usr/share/applications | ||
vinstall native/linux/tested/usr/share/metainfo/org.openstreetmap.josm.appdata.xml 644 usr/share/metainfo | ||
|
||
vman native/linux/tested/usr/share/man/man1/josm.1 | ||
|
||
for i in 8 16 22 24 32 36 40 42 48 64 72 80 96 128 192 256 512; do | ||
vinstall native/linux/tested/usr/share/icons/hicolor/${i}x${i}/apps/org.openstreetmap.josm.png \ | ||
644 usr/share/icons/hicolor/${i}x${i}/apps | ||
done | ||
vinstall native/linux/tested/usr/share/icons/hicolor/scalable/apps/org.openstreetmap.josm.svg \ | ||
644 usr/share/icons/hicolor/scalable/apps | ||
|
||
vbin "${FILESDIR}/josm" | ||
vinstall native/linux/tested/etc/default/josm 644 etc/default | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
site="https://josm.openstreetmap.de/" | ||
pattern="(?<=\(Latest tested version, currently )\K[\d]+(?=\))" |