summaryrefslogtreecommitdiff
path: root/community/postgis/PKGBUILD
blob: 8fd3a5ca08e1c73fd2b670f2cf5be9c53c337f10 (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
# $Id: PKGBUILD 76606 2012-09-24 15:07:54Z dan $
# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
# Contributor: dibblethewrecker dibblethewrecker.at.jiwe.dot.org
# Contributor: William Rea <sillywilly@gmail.com>

pkgname=postgis
pkgver=2.0.1
pkgrel=1
pkgdesc="Adds support for geographic objects to PostgreSQL"
arch=('i686' 'x86_64' 'mips64el')
url="http://postgis.org/"
license=('GPL')
depends=('postgresql>=9.2' 'postgresql<9.3' 'proj' 'geos' 'gdal' 'json-c' 'libxml2')
changelog=$pkgname.changelog
options=('!libtool')
source=("http://postgis.org/download/${pkgname}-${pkgver}.tar.gz")
sha256sums=('32d181bbf0e648fe31c95b3dd23f7e4e49094d93cb4278fdf71c8feed4e9593c')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  ./configure --prefix=/usr
  make

  # Build utils (FS#25836)
  cd utils
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make DESTDIR="${pkgdir}" install

  cd utils
  make DESTDIR="${pkgdir}" install
}