From 0f8a6ab4a9cd5919b27683de6b35e9eff419c090 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 14 Feb 2017 09:22:51 +0100 Subject: splitter neu --- splitter/PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++ splitter/splitter | 2 ++ 2 files changed, 42 insertions(+) create mode 100644 splitter/PKGBUILD create mode 100644 splitter/splitter (limited to 'splitter') diff --git a/splitter/PKGBUILD b/splitter/PKGBUILD new file mode 100644 index 000000000..b672428ad --- /dev/null +++ b/splitter/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer: Erich Eckner +# Contributor: Jeremy "Ichimonji10" Audet +# +# namcap warns that 'libcups' is an unnecessary dependency. This is untrue. +# Splitter will produce the following exception if libcups is not installed: +# +# Exception in thread "main" java.lang.UnsatisfiedLinkError: +# /usr/lib/jvm/java-7-openjdk/jre/lib/amd64/headless/libmawt.so: +# libcups.so.2: cannot open shared object file: No such file or directory +# +# namcap also warns that 'java-environment' is a dependency. This is untrue: +# java-runtime suffices. +# + +pkgname=splitter +pkgver=r580 +pkgrel=1 +pkgdesc='Utility for splitting OpenStreetMap maps into tiles.' +url='http://www.mkgmap.org.uk/' +license=(GPL) +arch=(any) +depends=(java-runtime sh libcups) +source=("http://www.mkgmap.org.uk/download/${pkgname}-${pkgver}.zip" + "${pkgname}") +sha256sums=('991c2750d39a51410ecf320225c878eeb4c3b6502f8677a8e3f074c0611a0383' + '40f984bc54a946678eeb3d554a84fad32d6a41038d42990d5336d4b1bdfbc63d') + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + + # Install the executable and jar file. + install -Dm755 "${srcdir}/${pkgname}" "${pkgdir}/usr/bin/${pkgname}" + install -Dm644 "${pkgname}.jar" \ + "${pkgdir}/usr/share/java/${pkgname}/${pkgname}.jar" + + # Install libraries. Destination dir created when installing jar file. + cp -r lib/ "${pkgdir}/usr/share/java/${pkgname}/" +} + +# vim:set ts=2 sw=2 et: diff --git a/splitter/splitter b/splitter/splitter new file mode 100644 index 000000000..a8bf5f845 --- /dev/null +++ b/splitter/splitter @@ -0,0 +1,2 @@ +#!/usr/bin/env sh +java -jar /usr/share/java/splitter/splitter.jar "$@" -- cgit v1.2.3-70-g09d2