summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8520d72b88fe84bdb1f4ef4f71d14bb2465b56b9 (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
# Maintainer: Marti Raudsepp <marti@juffo.org>
# Maintainer: peippo <christoph.fink@gmail.com>
pkgname=postgis-git
pkgver=3.1.0rc1.r48.g5148c43e3
pkgrel=1

pkgdesc="Postgres GIS extensions (from git)"
url="https://postgis.net/"
license=('GPL')

arch=('i686' 'x86_64')
depends=('postgresql' 'protobuf-c' 'gdal' 'geos' 'json-c' 'libxml2' 'libxslt')
makedepends=('clang' 'git' 'llvm')

conflicts=('postgis')
provides=('postgis')
replaces=('postgis-svn')

source=("${pkgname}::git+https://git.osgeo.org/gitea/postgis/postgis.git")
md5sums=('SKIP')

pkgver() {
  cd "${pkgname}"
  git describe --long --always | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "${pkgname}"
  ./autogen.sh 
  ./configure --prefix=/usr
  make
}

package() {
  cd "${pkgname}"
  make DESTDIR="${pkgdir}" install
}