desktop/josm/PKGBUILD
2013-12-10 04:22:42 +00:00

33 lines
1.3 KiB
Bash

# maintainer Neophytos Kolokotronis <tetris4 AT gmail DOT com>
# contributor: abveritas@chakra-project.org
pkgname=josm
pkgver=6388
pkgrel=1
pkgdesc="An editor for OpenStreetMap written in Java."
arch=('x86_64')
url="http://josm.openstreetmap.de/"
license=('GPL')
depends=('java-runtime' 'intltool')
screenshot=('http://wiki.openstreetmap.org/w/images/thumb/4/4e/JOSM-Jan-2009.jpg/800px-JOSM-Jan-2009.jpg')
source=("http://josm.openstreetmap.de/download/${pkgname}-tested.jar"
"${pkgname}.desktop")
sha256sums=('e21d389a0a59d8968ed70a393b86e4ca6f140d50094f773528418774fcdaf151'
'942de16cefdabb7d597d4bd398b733f2fc306f8d50b38ceebe42952b6695af03')
package() {
install -D -m644 ${pkgname}-tested.jar "${pkgdir}/usr/share/java/${pkgname}/${pkgname}.jar"
# Desktop integration.
install -D -m644 ${pkgname}.desktop "${pkgdir}/usr/share/applications/${pkgname}.desktop"
install -D -m644 images/logo.png "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
# Executable.
install -d "${pkgdir}/usr/bin"
echo "#!/bin/sh" > ${pkgdir}/usr/bin/${pkgname}
echo CLASSPATH="/usr/share/java/josm/josm.jar" >> "${pkgdir}/usr/bin/${pkgname}"
echo java -cp \"\${CLASSPATH}\" org.openstreetmap.josm.gui.MainApplication \"\$@\" \
>> ${pkgdir}/usr/bin/${pkgname}
chmod 755 "${pkgdir}/usr/bin/${pkgname}"
}