summaryrefslogtreecommitdiff
path: root/community/gpsman
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/gpsman
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/gpsman')
-rw-r--r--community/gpsman/PKGBUILD38
-rw-r--r--community/gpsman/gpsman.desktop10
-rw-r--r--community/gpsman/gpsman.install39
3 files changed, 87 insertions, 0 deletions
diff --git a/community/gpsman/PKGBUILD b/community/gpsman/PKGBUILD
new file mode 100644
index 000000000..329822ed9
--- /dev/null
+++ b/community/gpsman/PKGBUILD
@@ -0,0 +1,38 @@
+# $Id: PKGBUILD 11972 2010-02-24 02:57:47Z dgriffiths $
+# Maintainer: dibblethewrecker dibblethewrecker.at.jiwe.dot.org
+
+pkgname=gpsman
+pkgver=6.4
+pkgrel=4
+pkgdesc="GPS Manager is a graphical GPS data manager for preparing, inspectiing and editing GPS data"
+arch=('i686' 'x86_64')
+url="http://www.ncc.up.pt/gpsman"
+license=('GPL')
+depends=('tcl' 'tk')
+optdepends=('gpsmanshp: shapefile support')
+install=gpsman.install
+source=(http://www.ncc.up.pt/gpsman/gpsmanhtml/${pkgname}-${pkgver}.tgz
+ 'gpsman.desktop')
+
+build() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+ mkdir -p ${pkgdir}/usr/{bin,share/${pkgname}}
+
+ # set path to program files
+ sed -i "s|set SRCDIR gmsrc|set SRCDIR /usr/share/gpsman|g" ./gpsman.tcl
+ install -m755 gpsman.tcl ${pkgdir}/usr/bin/gpsman.tcl
+
+ # install a gpsman launcher
+ install -m755 util/gpsman.sh ${pkgdir}/usr/bin/gpsman || return 1
+
+ #install program files
+ cp -r gmsrc/* ${pkgdir}/usr/share/gpsman/ || return 1
+ chmod 755 ${pkgdir}/usr/share/gpsman/*.tcl
+ chmod -R 755 ${pkgdir}/usr/share/gpsman/gmicons
+
+ # install some freedesktop.org compatibility
+ install -D -m644 ${srcdir}/${pkgname}.desktop \
+ ${pkgdir}/usr/share/applications/${pkgname}.desktop
+}
+md5sums=('3a47f1953e0bad1ea3a79aba0a713f1a'
+ '0341f110f61e57b316fad7bee483665b')
diff --git a/community/gpsman/gpsman.desktop b/community/gpsman/gpsman.desktop
new file mode 100644
index 000000000..b0c359bd7
--- /dev/null
+++ b/community/gpsman/gpsman.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Name=GPSMan
+GenericName=
+Comment="Graphical GPS data manager for preparing, inspectiing and editing GPS data"
+Exec=/usr/bin/gpsman
+Icon=
+Terminal=false
+MultipleArgs=false
+Type=Application
+Categories=Application;Science
diff --git a/community/gpsman/gpsman.install b/community/gpsman/gpsman.install
new file mode 100644
index 000000000..8b3a5092f
--- /dev/null
+++ b/community/gpsman/gpsman.install
@@ -0,0 +1,39 @@
+# This is a default template for a post-install scriptlet. You can
+# remove any functions you don't need (and this header).
+
+# arg 1: the new package version
+pre_install() {
+ /bin/true
+}
+
+# arg 1: the new package version
+post_install() {
+ echo
+ echo " : You should change the path to your gps serial device in"
+ echo " : /usr/bin/gpsman"
+ echo
+ echo " : Config options are stored in /usr/share/gpsman/config.tcl"
+}
+
+# arg 1: the new package version
+# arg 2: the old package version
+pre_upgrade() {
+ /bin/true
+}
+
+# arg 1: the new package version
+# arg 2: the old package version
+post_upgrade() {
+ /bin/true
+}
+
+# arg 1: the old package version
+pre_remove() {
+ /bin/true
+}
+
+# arg 1: the old package version
+post_remove() {
+ /bin/true
+}
+