From 6ca29e0c62691c1f3120dda0f6b59dbb86cc9295 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 18 Apr 2011 05:50:22 +0000 Subject: Mon Apr 18 05:50:22 UTC 2011 --- community-testing/qlandkartegt/PKGBUILD | 44 +++++++++++++++++++ community-testing/qlandkartegt/gpsd-2.96.patch | 49 ++++++++++++++++++++++ .../qlandkartegt/qlandkartegt-mimetypes.xml | 7 ++++ .../qlandkartegt/qlandkartegt.changelog | 9 ++++ .../qlandkartegt/qlandkartegt.install | 7 ++++ 5 files changed, 116 insertions(+) create mode 100644 community-testing/qlandkartegt/PKGBUILD create mode 100644 community-testing/qlandkartegt/gpsd-2.96.patch create mode 100644 community-testing/qlandkartegt/qlandkartegt-mimetypes.xml create mode 100644 community-testing/qlandkartegt/qlandkartegt.changelog create mode 100644 community-testing/qlandkartegt/qlandkartegt.install (limited to 'community-testing') diff --git a/community-testing/qlandkartegt/PKGBUILD b/community-testing/qlandkartegt/PKGBUILD new file mode 100644 index 000000000..e478e9200 --- /dev/null +++ b/community-testing/qlandkartegt/PKGBUILD @@ -0,0 +1,44 @@ +# $Id: PKGBUILD 45140 2011-04-17 12:03:02Z andrea $ +# Maintainer: Jaroslav Lichtblau +# Contributor: Matthias Maennich +# Contributor: + +pkgname=qlandkartegt +pkgver=1.1.1 +pkgrel=2 +pkgdesc="Use your GPS with Linux" +arch=('i686' 'x86_64') +url="http://www.qlandkarte.org/" +license=('GPL') +depends=('gdal' 'gpsd' 'libdmtx' 'libexif' 'libmysqlclient' 'mesa' 'postgresql-libs' 'qt' 'shared-mime-info') +makedepends=('cmake' 'garmindev') +optdepends=('garmindev: to connect garmin devices') +install=$pkgname.install +changelog=$pkgname.changelog +source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz + $pkgname-mimetypes.xml + gpsd-2.96.patch) +sha256sums=('0288c94edcb0af4e39bc045c8607ed9404b4692c44e5409eff64329a21b33af9' + 'e8d33948831f8a66edd752c71c653085d6c4d9f1969e70dd8c40b9c7ca37fba0' + 'b641c94c6db4087c9ae1a79e31e2ea126830abf7ff1b05c27953edc6afebf8c7') + +build() { + cd ${srcdir}/$pkgname-$pkgver + + patch -Np0 -i ${srcdir}/gpsd-2.96.patch + + install -d ${srcdir}/$pkgname-$pkgver/build + cd ${srcdir}/$pkgname-$pkgver/build + + cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release .. + make +} + +package(){ + cd ${srcdir}/$pkgname-$pkgver/build + + make DESTDIR=${pkgdir} install + + install -D -m644 ${srcdir}/$pkgname-mimetypes.xml \ + ${pkgdir}/usr/share/mime/packages/$pkgname-mimetypes.xml +} diff --git a/community-testing/qlandkartegt/gpsd-2.96.patch b/community-testing/qlandkartegt/gpsd-2.96.patch new file mode 100644 index 000000000..634e9ad7e --- /dev/null +++ b/community-testing/qlandkartegt/gpsd-2.96.patch @@ -0,0 +1,49 @@ +$NetBSD: patch-ab,v 1.1 2011/03/31 20:21:34 drochner Exp $ + +for gpsd-2.96 + +--- src/CDeviceGPSD.h.orig 2011-03-15 20:13:04.000000000 +0000 ++++ src/CDeviceGPSD.h +@@ -56,7 +56,7 @@ class CGPSDThread : public QThread + protected: + virtual void run(); + +- gps_data_t* gpsdata; ++ gps_data_t* gpsdata, gpsdata_store; + + bool decodeData(); + +$NetBSD: patch-ac,v 1.1 2011/03/31 20:21:34 drochner Exp $ + +for gpsd-2.96 + +--- src/CDeviceGPSD.cpp.orig 2011-03-15 20:13:04.000000000 +0000 ++++ src/CDeviceGPSD.cpp +@@ -138,6 +138,7 @@ CGPSDThread::CGPSDThread( int _pipe_fd ) + log_mutex( new QMutex() ), + pipe_fd( _pipe_fd ) + { ++ gpsdata = &gpsdata_store; + } + + +@@ -149,8 +150,8 @@ CGPSDThread::~CGPSDThread() + + void CGPSDThread::run() + { +- gpsdata = gps_open( "localhost", DEFAULT_GPSD_PORT ); +- if( !gpsdata ) ++ int res = gps_open( "localhost", DEFAULT_GPSD_PORT, gpsdata ); ++ if( res ) + { + // TODO: message box (from other thread) + qDebug() << "gps_open failed."; +@@ -187,7 +188,7 @@ void CGPSDThread::run() + } // if + else if( FD_ISSET( gpsdata->gps_fd, &fds ) ) + { +- gps_poll( gpsdata ); ++ gps_read( gpsdata ); + if( !decodeData() ) break; + } // else if + } // else if diff --git a/community-testing/qlandkartegt/qlandkartegt-mimetypes.xml b/community-testing/qlandkartegt/qlandkartegt-mimetypes.xml new file mode 100644 index 000000000..46d3d402c --- /dev/null +++ b/community-testing/qlandkartegt/qlandkartegt-mimetypes.xml @@ -0,0 +1,7 @@ + + + + QLandkarteGT File + + + diff --git a/community-testing/qlandkartegt/qlandkartegt.changelog b/community-testing/qlandkartegt/qlandkartegt.changelog new file mode 100644 index 000000000..c832cc8d2 --- /dev/null +++ b/community-testing/qlandkartegt/qlandkartegt.changelog @@ -0,0 +1,9 @@ +2011-03-21 Jaroslav Lichtblau + * qlandkartegt 1.1.1-1 + +2011-02-23 Jaroslav Lichtblau + * qlandkartegt 1.1.0-1 + +2011-02-05 Jaroslav Lichtblau + * qlandkartegt 1.0.1-2 + * moved to [community] with 59 AUR votes diff --git a/community-testing/qlandkartegt/qlandkartegt.install b/community-testing/qlandkartegt/qlandkartegt.install new file mode 100644 index 000000000..aacc9e6a8 --- /dev/null +++ b/community-testing/qlandkartegt/qlandkartegt.install @@ -0,0 +1,7 @@ +post_install() { +update-mime-database usr/share/mime > /dev/null +} + +post_remove() { +update-mime-database usr/share/mime > /dev/null +} -- cgit v1.2.3-54-g00ecf