summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-02-14 09:22:40 +0100
committerErich Eckner <git@eckner.net>2017-02-14 09:22:40 +0100
commit4bcb821c413d03f6024ee7c445bea3a70568515a (patch)
tree2631c3f82c8d04a5296df3892b0207387b7fd4d7
parentadf73eff2730a974985fca86c6fb4d8d237f4305 (diff)
downloadarchlinuxewe.git.save-4bcb821c413d03f6024ee7c445bea3a70568515a.tar.xz
mkgmap neu
-rw-r--r--mkgmap/PKGBUILD35
-rw-r--r--mkgmap/mkgmap2
2 files changed, 37 insertions, 0 deletions
diff --git a/mkgmap/PKGBUILD b/mkgmap/PKGBUILD
new file mode 100644
index 00000000..5fd23cf1
--- /dev/null
+++ b/mkgmap/PKGBUILD
@@ -0,0 +1,35 @@
+# Maintainer: Erich Eckner <arch at eckner dot net>
+# Contributor: Jeremy "Ichimonji10" Audet <ichimonji10 at gmail dot com>
+# Contributor: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
+# Contributor: Arnaud Durand-Favreau <biginoz at FREE point FR>
+#
+# namcap warns that 'java-environment' is a dependency. This is untrue:
+# java-runtime suffices. Also, java-runtime provides 'sh'.
+#
+
+pkgname=mkgmap
+pkgver=r3792
+pkgrel=1
+pkgdesc='Create maps for Garmin GPS devices from OpenStreetMap (OSM) data.'
+url='http://www.mkgmap.org.uk'
+license=(GPL2)
+arch=(any)
+depends=('java-runtime=8')
+conflicts=("${pkgname}-svn")
+source=("$pkgname" "http://www.mkgmap.org.uk/download/${pkgname}-${pkgver}.zip")
+sha256sums=('135dfbca5146cea34ef48ed6908a817efdfbbcccbb8adfbbb6a100f58c2c7bb6'
+ 'd0fd79e9363a662e6bd637ae56bd796b0cbc5e7b17e74c56b1a67a702fa00b4f')
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ # Install the executable, jarfile, dependencies and man page.
+ install -Dm755 "$srcdir/$pkgname" "$pkgdir/usr/bin/$pkgname"
+ install -Dm644 \
+ "${pkgname}.jar" \
+ "${pkgdir}/usr/share/java/${pkgname}/${pkgname}.jar"
+ cp -r lib/ "${pkgdir}/usr/share/java/${pkgname}/"
+ install -Dm644 "doc/${pkgname}.1" "${pkgdir}/usr/share/man/man1/${pkgname}.1"
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/mkgmap/mkgmap b/mkgmap/mkgmap
new file mode 100644
index 00000000..914990de
--- /dev/null
+++ b/mkgmap/mkgmap
@@ -0,0 +1,2 @@
+#!/usr/bin/env sh
+java -jar /usr/share/java/mkgmap/mkgmap.jar "$@"