updated on Wed Jan 18 04:00:29 UTC 2012
[aur-mirror.git] / postgis-svn / PKGBUILD
blob2a030dc831ab2c8ed0221ce8c056f359151483a6
1     # Maintainer: Dominik Fuchs <dominik.fuchs (at) wur.nl>
3 pkgname=postgis-svn
4 pkgver=6280
5 pkgrel=2
6 pkgdesc="Adds support for geographic objects to PostgreSQL; including the experimental PostGis RASTER type."
7 arch=('i686' 'x86_64')
8 url="http://trac.osgeo.org/postgis/"
9 license=('GPL')
10 depends=('postgresql>=8.4.1' 'gdal')
11 options=('!makeflags')
12 provides=('postgis')
13 conflicts=('postgis')
14 source=()
15 md5sums=()
16 _svntrunk=http://svn.osgeo.org/postgis/trunk
17 _svnmod=trunk
19 build() {
21   cd "$srcdir"
24   msg "Downloading Postgis: connecting to svn.osgeo.org..."
25   if [ -d $_svnmod/.svn ]; then
26     (cd $_svnmod && svn up -r $pkgver)
27   else
28     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
29   fi
30   msg "SVN checkout done or server timeout"
31   msg "Starting make..."
33   rm -rf "$srcdir/$_svnmod-build"
34   cp -r $_svnmod $_svnmod-build
36   cd $_svnmod-build
38   sed 's:$(PGSQL_BINDIR):$(DESTDIR)/$(PGSQL_BINDIR):g' -i ${srcdir}/trunk-build/raster/scripts/python/Makefile.in 
40   ./autogen.sh
41   LDFLAGS=-lstdc++ ./configure --with-raster
42   make
43   make DESTDIR=${pkgdir} install