mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 10:32:13 +08:00
39 lines
1.3 KiB
Bash
39 lines
1.3 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>
|
|
|
|
# from AUR package http://aur.archlinux.org/packages.php?ID=12136
|
|
|
|
pkgname=josm
|
|
pkgver=4232
|
|
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=('2d8a9513cd5ae8a29d36fcada193b4b5'
|
|
'08fc7f6c694186c3f2f5549ebf8462cd')
|
|
|
|
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
|
|
}
|