updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / pgrouting / PKGBUILD
blob68c1b13d6116238b2b3bd06ea9fd771a2579d8a6
1 # Contributor: Andre Klitzing <andre () incubo () de>
3 pkgname=pgrouting
4 pkgver=1.05
5 pkgrel=1
6 pkgdesc="Adds routing functionality to PostGIS/PostgreSQL"
7 arch=('i686' 'x86_64')
8 url="http://pgrouting.postlbs.org"
9 license=('GPL')
10 depends=('postgis' 'gcc-libs')
11 makedepends=('cmake>=2.3' 'boost>=1.47')
12 source=(http://download.osgeo.org/pgrouting/source/$pkgname-$pkgver.tar.gz includes.patch)
13 sha1sums=('582b37eebf86416ca8936e2f3992b5319abc5325'
14           '049492db858eb61aaba8e0f513180bb783f4db17')
16 build() {
17   cd $srcdir/$pkgname-$pkgver
18   mv cmake/CMakeList.txt cmake/CMakeLists.txt
19   patch -p0 -i $srcdir/includes.patch || return 1
20   # TSP needs package GAUL and DD needs CGAL
21   #cmake . -DWITH_TSP=ON -DWITH_DD=ON
22   cmake . || return 1
23   make || return 1
24   make DESTDIR=$pkgdir install || return 1