summaryrefslogtreecommitdiff
path: root/pcr/navit/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/navit/PKGBUILD')
-rw-r--r--pcr/navit/PKGBUILD42
1 files changed, 42 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
+}
+