summaryrefslogtreecommitdiff
path: root/gis/mobac
diff options
context:
space:
mode:
Diffstat (limited to 'gis/mobac')
-rw-r--r--gis/mobac/README10
-rw-r--r--gis/mobac/directories.ini42
-rw-r--r--gis/mobac/mobac.SlackBuild64
-rw-r--r--gis/mobac/mobac.info10
-rw-r--r--gis/mobac/slack-desc19
5 files changed, 145 insertions, 0 deletions
diff --git a/gis/mobac/README b/gis/mobac/README
new file mode 100644
index 0000000000..0c987b1f4e
--- /dev/null
+++ b/gis/mobac/README
@@ -0,0 +1,10 @@
+Mobile Atlas Creator (formerly known as TrekBuddy Atlas Creator) is an open
+source program which creates offline atlases for GPS handhelds and cell phone
+applications like TrekBuddy, AndNav and other Android and WindowsCE-based
+applications. For the full list of supported applications please see the
+features section. Additionally individual maps can be exported as one large PNG
+image with calibration MAP file for OziExplorer. As source for an offline atlas
+Mobile Atlas Creator can use a large number of different online maps such as
+OpenStreetMap and other online map providers.
+
+The SlackBuild will create /usr/bin/mobac to launch Mobile Atlas Creator.
diff --git a/gis/mobac/directories.ini b/gis/mobac/directories.ini
new file mode 100644
index 0000000000..fd4a41091c
--- /dev/null
+++ b/gis/mobac/directories.ini
@@ -0,0 +1,42 @@
+################################################
+# MOBAC system wide directory configuration
+################################################
+#
+# For activating this configuration file rename it to "directories.ini"
+# and place it in the same directory as the file Mobile_Atlas_Creator.jar
+#
+# You can use any available system variable - but you have to write it in Java notation
+#
+# Therefore the tmp directory is available on all platforms via "${TMP}"
+#
+# Besides the default system variables MOBAC defines two own variables:
+#
+# ${home}
+# user home directory, e.g. /home/username/ on Linux
+#
+# ${mobac-prog}
+# directory where MOBAC (or to be detailed Mobile_Atlas_Creator.jar) has been installed into
+#
+# Notes:
+# Absolute pathes are also valid
+
+#Uncomment one of the following lines starting with "mobac." for redefining the directory
+
+# Directory where to save settings.xml and search for log4j.xml
+mobac.usersettingsdir=${home}/.mobac
+
+# Directory where to save and load atlas profiles
+mobac.atlasprofilesdir=${home}/.mobac
+
+# Directory where to search "map packs", custom maps and beanShell map sources
+# Updated map packs are also saved into this directory overwriting old ones
+mobac.mapsourcesdir=${mobac-prog}/mapsources
+
+# Directory where to create the cache databases of downloaded tiles
+mobac.tilestoredir=${home}/.cache/mobac
+
+# Directory where to save config files for executing external tools from within MOBAC
+#mobac.toolsdir=${mobac-prog}/tools
+
+# Directory where to create the temporary download container
+mobac.tmpdir=/tmp
diff --git a/gis/mobac/mobac.SlackBuild b/gis/mobac/mobac.SlackBuild
new file mode 100644
index 0000000000..1364e36a54
--- /dev/null
+++ b/gis/mobac/mobac.SlackBuild
@@ -0,0 +1,64 @@
+#!/bin/sh
+
+# Slackware build script for mobac
+# Benjamin Trigona-Harany
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+PRGNAM=mobac
+SRCNAM=Mobile\ Atlas\ Creator
+VERSION=${VERSION:-1.9.16}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+ARCH=noarch
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+MOBAC_HOME=usr/share/$PRGNAM
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG/$MOBAC_HOME $PKG/usr/bin $OUTPUT
+cd $TMP
+rm -rf $PRGNAM
+mkdir $PRGNAM
+cd $PRGNAM
+unzip "$CWD/$SRCNAM $VERSION.zip"
+chown -R root:root .
+
+sed -i "s/-jar /\-jar \/usr\/share\/$PRGNAM\//g" start.sh
+cp -ar *.jar mapsources start.sh $PKG/$MOBAC_HOME
+cp $CWD/directories.ini $PKG/$MOBAC_HOME
+
+chmod +x $PKG/$MOBAC_HOME/start.sh
+ln -s /$MOBAC_HOME/start.sh $PKG/usr/bin/$PRGNAM
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a CHANGELOG.txt README.HTM ReleaseNotes.txt gpl.txt $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/gis/mobac/mobac.info b/gis/mobac/mobac.info
new file mode 100644
index 0000000000..a828b6d046
--- /dev/null
+++ b/gis/mobac/mobac.info
@@ -0,0 +1,10 @@
+PRGNAM="mobac"
+VERSION="1.9.16"
+HOMEPAGE="http://mobac.sourceforge.net/"
+DOWNLOAD="http://sourceforge.net/projects/mobac/files/Mobile%20Atlas%20Creator/MOBAC%201.9/Mobile%20Atlas%20Creator%201.9.16.zip"
+MD5SUM="79e0412e5a084c2795a7a487cc6cb632"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES="jdk"
+MAINTAINER="Benjamin Trigona-Harany"
+EMAIL="slackbuilds@jaxartes.net"
diff --git a/gis/mobac/slack-desc b/gis/mobac/slack-desc
new file mode 100644
index 0000000000..df1c258592
--- /dev/null
+++ b/gis/mobac/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+mobac: mobac (Mobile Atlas Creator)
+mobac:
+mobac: Mobile Atlas Creator (formerly known as TrekBuddy Atlas Creator) is
+mobac: an open source program which creates offline atlases for GPS handhelds
+mobac: and cell phone applications like TrekBuddy, AndNav and other Android
+mobac: and WindowuCE-based applications. For the full list of supported
+mobac: applications please see the features section. Additionally individual
+mobac: maps can be exported as one large PNG image with calibration MAP file
+mobac: for OziExplorer. As source for an offline atlas Mobile Atlas Creator
+mobac: can use a large number of different online maps such as OpenStreetMap
+mobac: and other online map providers.