testing/gdal: add libexpat support

This commit is contained in:
Leo 2019-07-15 18:58:09 -03:00
parent 5c87fab1ba
commit 1a55ba9624

View File

@ -2,12 +2,11 @@
# Maintainer: Trevor R.H. Clarke <trevor@notcows.com>
pkgname=gdal
pkgver=2.4.0
pkgrel=2
pkgrel=3
pkgdesc="A translator library for raster and vector geospatial data formats"
url="http://gdal.org"
url="https://gdal.org"
arch="all"
license="MIT"
depends=""
depends_dev="gdal"
makedepends="
curl-dev
@ -23,6 +22,7 @@ makedepends="
swig
tiff-dev
zlib-dev
expat-dev
"
subpackages="
$pkgname-dev
@ -30,11 +30,8 @@ subpackages="
"
source="http://download.osgeo.org/$pkgname/$pkgver/$pkgname-$pkgver.tar.xz"
builddir="$srcdir/$pkgname-$pkgver"
build() {
cd "$builddir"
./configure --prefix=/usr \
--with-curl=/usr/bin/curl-config
make
@ -44,8 +41,6 @@ build() {
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
chmod -x "$pkgdir"/usr/include/*.h
}
@ -64,7 +59,6 @@ py() {
check() {
# TODO: https://trac.osgeo.org/gdal/wiki/TestingNotes
cd "$builddir"
apps/gdal-config --version | grep "$pkgver"
# confirms MBTiles support