# $Id: PKGBUILD 137231 2015-07-21 18:25:31Z jlichtblau $
# Maintainer: Jaroslav Lichtblau <svetlemodry@archlinux.org>
# Contributor: Brian Galey <bkgaley at gmail dot com>
# Contributor: Pietro Zambelli <peter.zamb at gmail dot com>

pkgname=libspatialite
pkgver=4.3.0
pkgrel=1
pkgdesc="SQLite extension to support spatial data types and operations"
arch=('i686' 'x86_64')
url="https://www.gaia-gis.it/fossil/libspatialite"
license=('MPL' 'GPL' 'LGPL')
depends=('geos' 'libfreexl' 'libxml2' 'proj' 'sqlite')
source=(http://www.gaia-gis.it/gaia-sins/$pkgname-$pkgver.tar.gz)
sha256sums=('4acf2d2b891989e61351584fe28514a6561f8f6a1901b988990513be5fe1bdfe')

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

  ./configure --prefix=/usr --enable-libxml2
  make
}

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

  make DESTDIR="${pkgdir}" install
}
