summaryrefslogtreecommitdiff
path: root/community/qlandkartegt
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-11-14 23:14:50 +0000
committerroot <root@rshg054.dnsready.net>2011-11-14 23:14:50 +0000
commit3d151dfc8e08b65c2c1d4b5e8081562d56ee7d41 (patch)
tree6471e323329fc287485206e36e43a9036ccf13d2 /community/qlandkartegt
parent600d5378dadf22b8517d52ac19500594bce4b66d (diff)
Mon Nov 14 23:14:50 UTC 2011
Diffstat (limited to 'community/qlandkartegt')
-rw-r--r--community/qlandkartegt/PKGBUILD29
-rw-r--r--community/qlandkartegt/fix-glu-header.patch12
2 files changed, 30 insertions, 11 deletions
diff --git a/community/qlandkartegt/PKGBUILD b/community/qlandkartegt/PKGBUILD
index 7c9e548cb..6211e7f17 100644
--- a/community/qlandkartegt/PKGBUILD
+++ b/community/qlandkartegt/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 56621 2011-10-09 07:51:45Z jlichtblau $
+# $Id: PKGBUILD 58530 2011-11-13 16:03:22Z andrea $
# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
# Contributor: Matthias Maennich <arch@maennich.net>
# Contributor: <boenki@gmx.de>
@@ -16,25 +16,32 @@ 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)
+ $pkgname-mimetypes.xml
+ 'fix-glu-header.patch')
sha256sums=('3f87667ceffde60a7c533df7e25f375793a093970d89bfa1cd842b3595c58f2c'
- 'e8d33948831f8a66edd752c71c653085d6c4d9f1969e70dd8c40b9c7ca37fba0')
+ 'e8d33948831f8a66edd752c71c653085d6c4d9f1969e70dd8c40b9c7ca37fba0'
+ '8e8c6440e1674a87d5a221c978f2be832457fb43980894725044837581625618')
build() {
- cd ${srcdir}/$pkgname-$pkgver
+ cd "${srcdir}/$pkgname-$pkgver"
- install -d ${srcdir}/$pkgname-$pkgver/build
- cd ${srcdir}/$pkgname-$pkgver/build
+ patch -R -p2 -i "${srcdir}"/fix-glu-header.patch
- cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release ..
+ cd "${srcdir}"
+ mkdir build
+ cd build
+
+ cmake ../${pkgname}-${pkgver} \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release
make
}
package(){
- cd ${srcdir}/$pkgname-$pkgver/build
+ cd "${srcdir}/build"
- make DESTDIR=${pkgdir} install
+ make DESTDIR="${pkgdir}" install
- install -D -m644 ${srcdir}/$pkgname-mimetypes.xml \
- ${pkgdir}/usr/share/mime/packages/$pkgname-mimetypes.xml
+ install -D -m644 "${srcdir}/$pkgname-mimetypes.xml" \
+ "${pkgdir}/usr/share/mime/packages/$pkgname-mimetypes.xml"
}
diff --git a/community/qlandkartegt/fix-glu-header.patch b/community/qlandkartegt/fix-glu-header.patch
new file mode 100644
index 000000000..214ad395d
--- /dev/null
+++ b/community/qlandkartegt/fix-glu-header.patch
@@ -0,0 +1,12 @@
+--- QLandkarteGT/trunk/src/CMap3D.cpp 2011/08/23 16:34:50 2943
++++ QLandkarteGT/trunk/src/CMap3D.cpp 2011/09/03 07:58:02 2961
+@@ -31,8 +31,8 @@
+ #include "CWptDB.h"
+ #include "WptIcons.h"
+
+-#include <GL/glu.h>
+ #include <QtGui>
++#include <QtOpenGL>
+ #include <math.h>
+
+ #ifndef GL_CLAMP_TO_EDGE