blob: fe399a4c1e5816c1910bfbcdb4bee68c25442c5f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# former maintainer: Jeremy Audet <jerebear@protonmail.com>
#
# 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
pkgrel=1
pkgver=654
pkgdesc='Utility for splitting OpenStreetMap maps into tiles.'
url='http://www.mkgmap.org.uk/'
license=(GPL)
arch=(any)
depends=('java-runtime>=8' sh libcups)
source=("http://www.mkgmap.org.uk/download/${pkgname}-r${pkgver}.zip")
sha256sums=('e82934a18195197340b1d364a2bf6dbf44e35a41f27e08e8192f41854962d977')
package() {
cd "${srcdir}/${pkgname}-r${pkgver}"
# Install the executable and jar file.
mkdir -p "${pkgdir}/usr/bin"
echo """#!/usr/bin/env sh
java -jar /usr/share/java/splitter/splitter.jar \$@""" > "${pkgdir}/usr/bin/${pkgname}"
chmod a+x "${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:
|