aboutsummaryrefslogtreecommitdiffstats
path: root/testing/postgis/APKBUILD
blob: 18621d14d46404faac8f33eb1dce89d462ff8250 (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
# Contributor: Bjoern Schilberg <bjoern@intevation.de>
# Maintainer: Bjoern Schilberg <bjoern@intevation.de>
pkgname=postgis
pkgver=2.3.2
pkgrel=2
pkgdesc="PostGIS is a spatial database extender for PostgreSQL object-relational database."
url="http://postgis.net"
arch="x86_64"
license="GPL2"
depends="postgresql geos gdal proj4 perl"
depends_dev="postgresql-dev geos-dev gdal-dev libxml2-dev proj4-dev perl-dev"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev"
source="http://download.osgeo.org/postgis/source/$pkgname-$pkgver.tar.gz"


builddir="$srcdir/$pkgname-$pkgver"

build() {
        cd "$builddir"
        ./configure --prefix=/usr || return 1
        make -j1 || return 1
}

package() {
        cd "$builddir"
        make DESTDIR="$pkgdir" install || return 1
        chmod -x "$pkgdir"/usr/include/*.h
}

md5sums="3b1a648d0c15bce5bd18ec3481fc633b  postgis-2.3.2.tar.gz"
sha256sums="e92e34c18f078a3d1a2503cd870efdc4fa9e134f0bcedbbbdb8b46b0e6af09e4 postgis-2.3.2.tar.gz"
sha512sums="d4503959c12e7e269817764e5fae4e567b1765ffe9c857a2382d072a0f159939ddb4f6a57c5ca34b822c585926d0f219f0d788b37e8b06a822ce7c0bcc4e88c6  postgis-2.3.2.tar.gz"