desktop/josm/PKGBUILD
2013-02-16 23:14:38 +00:00

36 lines
1.2 KiB
Bash

#
# Chakra Packages for Chakra, part of chakra-project.org
#
# maintainer abveritas@chakra-project.org
pkgname=josm
pkgver=5697
pkgrel=1
pkgdesc="An editor for OpenStreetMap written in Java."
arch=('any')
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")
md5sums=('6844b0e3d9853f3e467d04c5377337b2'
'd448106702c3104910a716dab9c8f645')
build() {
cd $srcdir
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
}