summaryrefslogtreecommitdiff
path: root/community/gpsdrive
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-06-18 01:11:38 -0700
committerroot <root@rshg054.dnsready.net>2013-06-18 01:11:38 -0700
commit614d2fec699c594b1a3a25c973e0b5150302ff0e (patch)
tree7d5b075f309f4004f09e77562975fad441662446 /community/gpsdrive
parent3c8e479bfe9fab72058c833f2909a26232114733 (diff)
Tue Jun 18 01:11:08 PDT 2013
Diffstat (limited to 'community/gpsdrive')
-rw-r--r--community/gpsdrive/PKGBUILD20
1 files changed, 11 insertions, 9 deletions
diff --git a/community/gpsdrive/PKGBUILD b/community/gpsdrive/PKGBUILD
index 38ad424ef..10ca7b8ae 100644
--- a/community/gpsdrive/PKGBUILD
+++ b/community/gpsdrive/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 87417 2013-03-31 19:18:21Z stephane $
+# $Id: PKGBUILD 92874 2013-06-17 12:07:05Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
# Maintainer: damir <damir@archlinux.org>
@@ -6,7 +6,7 @@
pkgname=gpsdrive
pkgver=2.11
_pkgver=20120928
-pkgrel=17
+pkgrel=18
pkgdesc="A car (bike, ship, plane) navigation system"
arch=("i686" "x86_64")
url="http://www.gpsdrive.de/"
@@ -20,21 +20,23 @@ install="gpsdrive.install"
source=("http://arch.p5n.pp.ru/~sergej/dl/2012/${pkgname}-${_pkgver}.tar.gz")
md5sums=('bc53792529788b81c291a32d628a4850')
-build() {
+prepare() {
cd "$srcdir"
-
# python2 fix
for file in $(find . -name '*.py' -print); do
sed -i 's_#!/usr/bin/python_#!/usr/bin/python2_' $file
sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' $file
done
-
- rm -rf build
- mkdir build
- cd build
-
sed -i 's|GdkGC \*kontext_map;|extern GdkGC *kontext_map;|' $srcdir/gpsdrive-${_pkgver}/src/gpsdrive.c
sed -i '22,1i#include <mapnik/graphics.hpp>' $srcdir/gpsdrive-${_pkgver}/src/mapnik.cpp
+ sed -i 's|datasource_cache::instance()->|datasource_cache::instance().|' $srcdir/gpsdrive-${_pkgver}/src/mapnik.cpp
+}
+
+build() {
+ cd "$srcdir"
+
+ mkdir -p build
+ cd build
export CFLAGS=-I/usr/include/gdk-pixbuf-2.0/
export CPPFLAGS=-I/usr/include/gdk-pixbuf-2.0/