updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / gdal-grass / PKGBUILD
bloba96ebdfe32a28bf4e575281026e6feafd9248f58
1 # $Id: PKGBUILD 2741 2009-09-21 23:46:46Z ibiru $
2 # Maintainer: dibblethewrecker <dibblethewrecker.at.jiwe.org>
4 pkgname=gdal-grass
5 pkgver=1.4.3
6 pkgrel=4
7 pkgdesc="Standalone drivers for GRASS raster and vector files"
8 arch=('i686' 'x86_64')
9 url="http://www.gdal.org/dl/"
10 license=('GPL')
11 depends=('gdal' 'grass')
12 makedepends=('fftw')
13 source=(http://download.osgeo.org/gdal/$pkgname-$pkgver.tar.gz
14         'gdal-grass-destdir.patch')
15 md5sums=('2bfb7640e03b4d9d012f1a5d62c0351d' '78f74b862040e47f2c94279692d5cba6')
17 build() {
18   cd "$srcdir/$pkgname-$pkgver"
19   ./configure --prefix=/usr  --with-gdal=/usr/bin/gdal-config --with-grass=/opt/grass || return 1
20   patch -Np 0 -i "$srcdir/gdal-grass-destdir.patch" || return 1
21   make || return 1
22   install -d "$pkgdir/usr/share/gdal/grass/etc"
23   install -d "$pkgdir/usr/share/gdal/grass/driver/db"
24   make DESTDIR="$pkgdir" install || return 1