mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 18:42:12 +08:00
36 lines
1.2 KiB
Bash
36 lines
1.2 KiB
Bash
#
|
|
# Chakra Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
|
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
pkgname=josm
|
|
pkgver=4399
|
|
pkgrel=1
|
|
pkgdesc="An editor for OpenStreetMap written in Java."
|
|
arch=('any')
|
|
url="http://josm.openstreetmap.de/"
|
|
license=('GPL')
|
|
depends=('java-runtime' 'intltool')
|
|
source=(http://josm.openstreetmap.de/download/$pkgname-tested.jar \
|
|
$pkgname.desktop)
|
|
md5sums=('035b6bcea19b1942253a2a900feeb231'
|
|
'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
|
|
}
|