aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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"