summaryrefslogtreecommitdiff
path: root/libspatialite/PKGBUILD
blob: 3f9df152a03a11af838aa391114c4ff078090aae (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
37
38
# Maintainer: Erich Eckner <arch at eckner dot net>
# Contributor: 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=5.0.0
pkgrel=1
pkgdesc="SQLite extension to support spatial data types and operations"
arch=('x86_64' 'i686' 'pentium4')
url="https://www.gaia-gis.it/fossil/libspatialite"
license=('MPL' 'GPL' 'LGPL')
_pinned_dependencies=(
  'geos=3.8.0'
  'glibc>=2.32'
  'libfreexl=1.0.6'
  'libxml2=2.9.10'
  'minizip=1:1.2.11'
  'proj=6.3.2'
  'sqlite=3.33.0'
  'zlib=1:1.2.11'
)
depends=("${_pinned_dependencies[@]}" 'minizip')
source=(https://www.gaia-gis.it/gaia-sins/$pkgname-$pkgver.tar.gz)
sha256sums=('7b7fd70243f5a0b175696d87c46dde0ace030eacc27f39241c24bac5dfac6dac')

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

  ./configure --prefix=/usr --enable-libxml2 CFLAGS="$CFLAGS -DACCEPT_USE_OF_DEPRECATED_PROJ_API_H=1"
  make
}

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

  make DESTDIR="${pkgdir}" install
}