aboutsummaryrefslogtreecommitdiffstats
path: root/testing/gdal
diff options
context:
space:
mode:
authorMr. Outis <mroutis@protonmail.com>2017-11-18 20:03:56 -0600
committerTimo Teräs <timo.teras@iki.fi>2018-02-06 18:15:29 +0000
commit652f5749f9fc1d75d2feb09d300f84816d07a6e7 (patch)
tree2f406067c76cf5e14a95e81d553988cf2e343029 /testing/gdal
parent2c5e07e07d00696e93c338f61e2879e2b12a2172 (diff)
downloadaports-652f5749f9fc1d75d2feb09d300f84816d07a6e7.tar.bz2
aports-652f5749f9fc1d75d2feb09d300f84816d07a6e7.tar.xz
testing/gdal: Support PostgreSQL and SQLite drivers
Enable support for the following drivers: - PostgreSQL - SQLite [TT: bump pkgrel, minor stylistic]
Diffstat (limited to 'testing/gdal')
-rw-r--r--testing/gdal/APKBUILD37
1 files changed, 34 insertions, 3 deletions
diff --git a/testing/gdal/APKBUILD b/testing/gdal/APKBUILD
index e75da72674..6a5483b781 100644
--- a/testing/gdal/APKBUILD
+++ b/testing/gdal/APKBUILD
@@ -2,15 +2,32 @@
# Maintainer: Trevor R.H. Clarke <trevor@notcows.com>
pkgname=gdal
pkgver=2.2.3
-pkgrel=0
+pkgrel=1
pkgdesc="A translator library for raster and vector geospatial data formats"
url="http://gdal.org"
arch="all"
license="MIT"
depends=""
depends_dev="gdal"
-makedepends="giflib-dev jpeg-dev libjpeg-turbo-dev libpng-dev tiff-dev zlib-dev swig python2-dev curl-dev linux-headers"
-subpackages="$pkgname-dev py-$pkgname:py"
+makedepends="
+ curl-dev
+ giflib-dev
+ jpeg-dev
+ libjpeg-turbo-dev
+ libpng-dev
+ linux-headers
+ postgresql-dev
+ python2-dev
+ sqlite-dev
+ swig
+ tiff-dev
+ zlib-dev
+ "
+subpackages="
+ $pkgname-dev
+ py-$pkgname:py
+ "
+
source="http://download.osgeo.org/$pkgname/$pkgver/$pkgname-$pkgver.tar.xz"
builddir="$srcdir/$pkgname-$pkgver"
@@ -42,4 +59,18 @@ py() {
install -d "$subpkgdir"/usr/bin
install -m755 scripts/*.py "$subpkgdir"/usr/bin/
}
+
+check() {
+ # TODO: https://trac.osgeo.org/gdal/wiki/TestingNotes
+
+ cd "$builddir"
+ apps/gdal-config --version | grep "$pkgver"
+
+ # confirms MBTiles support
+ apps/gdal_translate --formats | grep "MBTiles -raster- (rw+v)"
+
+ # confirms PostgreSQL/PostGIS support
+ apps/ogr2ogr --formats | grep "PostgreSQL -vector- (rw+): PostgreSQL/PostGIS"
+}
+
sha512sums="205c1723e2c5d7c1c5b6bb0a92e880db80eae5944da8f00705e7acc58a664474f7d3eb6e2783a1cd6eef7c6b43c76f94c75d109f43805438e8f0560b2f4843cf gdal-2.2.3.tar.xz"