diff options
Diffstat (limited to 'pcr/navit')
-rw-r--r-- | pcr/navit/PKGBUILD | 42 | ||||
-rw-r--r-- | pcr/navit/freetype2_include.patch | 24 | ||||
-rw-r--r-- | pcr/navit/navit.install | 11 |
3 files changed, 77 insertions, 0 deletions
diff --git a/pcr/navit/PKGBUILD b/pcr/navit/PKGBUILD new file mode 100644 index 000000000..26c1fd653 --- /dev/null +++ b/pcr/navit/PKGBUILD @@ -0,0 +1,42 @@ +# Maintainer: André Silva <emulatorman@parabola.nu> +# Contributor (Arch): György Balló <ballogy@freestart.hu> +pkgname=navit +pkgver=0.2.0 +pkgrel=1 +pkgdesc="Car navigation system with routing engine" +arch=('i686' 'x86_64') +url="http://www.navit-project.org/" +license=('GPL') +depends=('gtk2' 'sdl_image' 'qt4' 'postgresql-libs' 'imlib2' 'dbus-glib' 'fribidi') +makedepends=('wget') +options=(!libtool) +install=navit.install +source=(http://downloads.sourceforge.net/navit/$pkgname-$pkgver.tar.gz + freetype2_include.patch) +md5sums=('7eea687219526275f7bd41888eda609b' + '8c552a90e251fdc69dd7b1d14ef1441d') + +prepare() { + cd "$srcdir/$pkgname-$pkgver" + + # fix freetype2 include path + patch -Np1 -i $srcdir/freetype2_include.patch +} + +build() { + cd "$srcdir/$pkgname-$pkgver" + rm -rf navit/graphics/qt_qpainter/graphics_qt_qpainter.moc + + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ + --disable-static \ + --disable-binding-python \ + --disable-vehicle-gpsd + make +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + + make DESTDIR="$pkgdir/" install +} + diff --git a/pcr/navit/freetype2_include.patch b/pcr/navit/freetype2_include.patch new file mode 100644 index 000000000..32cf66ca9 --- /dev/null +++ b/pcr/navit/freetype2_include.patch @@ -0,0 +1,24 @@ +diff -Nur navit-0.2.0.orig/navit/font/freetype/font_freetype.c navit-0.2.0/navit/font/freetype/font_freetype.c +--- navit-0.2.0.orig/navit/font/freetype/font_freetype.c 2010-11-21 19:33:28.000000000 -0200 ++++ navit-0.2.0/navit/font/freetype/font_freetype.c 2015-08-21 16:54:27.439825363 -0300 +@@ -17,7 +17,7 @@ + #include <fribidi/fribidi-deprecated.h> + #endif + #endif +-#include <freetype/ftglyph.h> ++#include FT_GLYPH_H + #include "point.h" + #include "graphics.h" + #include "debug.h" +diff -Nur navit-0.2.0.orig/navit/graphics/sdl/graphics_sdl.c navit-0.2.0/navit/graphics/sdl/graphics_sdl.c +--- navit-0.2.0.orig/navit/graphics/sdl/graphics_sdl.c 2010-11-21 19:33:15.000000000 -0200 ++++ navit-0.2.0/navit/graphics/sdl/graphics_sdl.c 2015-08-21 16:53:51.388282249 -0300 +@@ -70,7 +70,7 @@ + #include <fontconfig/fontconfig.h> + #include <ft2build.h> + #include FT_FREETYPE_H +-#include <freetype/ftglyph.h> ++#include FT_GLYPH_H + #endif + #include <event.h> + diff --git a/pcr/navit/navit.install b/pcr/navit/navit.install new file mode 100644 index 000000000..2c455e952 --- /dev/null +++ b/pcr/navit/navit.install @@ -0,0 +1,11 @@ +post_install() { + xdg-icon-resource forceupdate +} + +post_upgrade() { + post_install $1 +} + +post_remove() { + post_install $1 +} |