summaryrefslogtreecommitdiff
path: root/community/gpsdrive
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-06-17 03:27:11 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-06-17 03:27:11 +0000
commit6459b84bf754eda5323f40eb7af76dde65b63251 (patch)
tree81947a270848520d4cf2f9d1c5ce91ced54fcdff /community/gpsdrive
parent942111e62628e9a5c4729563215b1cfb8911735e (diff)
Tue Jun 17 03:23:47 UTC 2014
Diffstat (limited to 'community/gpsdrive')
-rw-r--r--community/gpsdrive/PKGBUILD11
-rw-r--r--community/gpsdrive/gpsdrive-perltovendor.patch28
2 files changed, 35 insertions, 4 deletions
diff --git a/community/gpsdrive/PKGBUILD b/community/gpsdrive/PKGBUILD
index 5d9ecf85b..e27a1049b 100644
--- a/community/gpsdrive/PKGBUILD
+++ b/community/gpsdrive/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 102253 2013-12-07 10:36:38Z bpiotrowski $
+# $Id: PKGBUILD 113222 2014-06-16 10:34:52Z 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=20
+pkgrel=21
pkgdesc="A car (bike, ship, plane) navigation system"
arch=("i686" "x86_64")
url="http://www.gpsdrive.de/"
@@ -17,8 +17,10 @@ depends=('gtk2' 'gpsd' 'libxml2' 'curl' 'python2' 'boost-libs' 'gdal' 'mapnik' '
makedepends=('cmake>=2.4.4' 'boost' 'cfitsio')
install="gpsdrive.install"
#source=("http://www.gpsdrive.de/packages/${pkgname}-${pkgver}.tar.gz")
-source=("http://arch.p5n.pp.ru/~sergej/dl/2012/${pkgname}-${_pkgver}.tar.gz")
-md5sums=('bc53792529788b81c291a32d628a4850')
+source=("http://arch.p5n.pp.ru/~sergej/dl/2012/${pkgname}-${_pkgver}.tar.gz"
+ "gpsdrive-perltovendor.patch")
+md5sums=('bc53792529788b81c291a32d628a4850'
+ 'c28bc2dc51a76a39161bf540aebfab6c')
prepare() {
cd "$srcdir"
@@ -30,6 +32,7 @@ prepare() {
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
+ (cd gpsdrive-${_pkgver} && patch -p1 <$srcdir/gpsdrive-perltovendor.patch)
}
build() {
diff --git a/community/gpsdrive/gpsdrive-perltovendor.patch b/community/gpsdrive/gpsdrive-perltovendor.patch
new file mode 100644
index 000000000..c89226761
--- /dev/null
+++ b/community/gpsdrive/gpsdrive-perltovendor.patch
@@ -0,0 +1,28 @@
+diff -ru gpsdrive-2.11/scripts/osm/perl_lib/CMakeLists.txt gpsdrive-2.11-patched/scripts/osm/perl_lib/CMakeLists.txt
+--- gpsdrive-2.11/scripts/osm/perl_lib/CMakeLists.txt 2010-06-24 15:53:32.000000000 -0400
++++ gpsdrive-2.11-patched/scripts/osm/perl_lib/CMakeLists.txt 2014-06-11 18:50:59.000000000 -0400
+@@ -5,10 +5,10 @@
+ MACRO_OPTIONAL_FIND_PACKAGE(Perl)
+
+ if (PERL_FOUND)
+- if (NOT PERL_SITELIB)
++ if (NOT PERL_VENDORLIB)
+ MACRO_OPTIONAL_FIND_PACKAGE(PerlLibs)
+- endif (NOT PERL_SITELIB)
+- #MESSAGE("DEBUG: > PERL_SITELIB: ${PERL_SITELIB}")
++ endif (NOT PERL_VENDORLIB)
++ #MESSAGE("DEBUG: > PERL_VENDORLIB: ${PERL_VENDORLIB}")
+
+ file(GLOB_RECURSE perl_modules ${CMAKE_CURRENT_SOURCE_DIR}/*.pm)
+
+@@ -16,8 +16,8 @@
+ foreach(perl_module ${perl_modules})
+ file(RELATIVE_PATH relative_module_path ${CMAKE_CURRENT_SOURCE_DIR} ${perl_module})
+ get_filename_component(relative_module_path ${relative_module_path} PATH)
+- install(FILES ${perl_module} DESTINATION ${PERL_SITELIB}/${relative_module_path})
+- #message("DEBUG: install ${perl_module} to ${PERL_SITELIB}/${relative_module_path}")
++ install(FILES ${perl_module} DESTINATION ${PERL_VENDORLIB}/${relative_module_path})
++ #message("DEBUG: install ${perl_module} to ${PERL_VENDORLIB}/${relative_module_path}")
+ endforeach(perl_module ${perl_modules})
+ endif (perl_modules)
+ endif (PERL_FOUND)