summaryrefslogtreecommitdiff
path: root/pcr/navit/PKGBUILD
blob: 26c1fd653a4adc7c4cb26babc00edbfa9a9cf665 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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
}