From 415856bdd4f48ab4f2732996f0bae58595092bbe Mon Sep 17 00:00:00 2001 From: Parabola Date: Tue, 5 Apr 2011 14:26:38 +0000 Subject: Tue Apr 5 14:26:38 UTC 2011 --- community/gpsman/PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++ community/gpsman/gpsman.desktop | 10 ++++++++++ community/gpsman/gpsman.install | 39 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 87 insertions(+) create mode 100644 community/gpsman/PKGBUILD create mode 100644 community/gpsman/gpsman.desktop create mode 100644 community/gpsman/gpsman.install (limited to 'community/gpsman') 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 +} + -- cgit v1.2.3-54-g00ecf