From 777389bca1f3041ce2b2ff91f309ce4f7ac0d0a3 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Tue, 3 Oct 2017 12:45:34 +0000 Subject: testing/gdal: modernize, make build fail if curl is missing dont rely on autodetection and make it fail if curl is missing for some reason. --- testing/gdal/APKBUILD | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'testing/gdal') diff --git a/testing/gdal/APKBUILD b/testing/gdal/APKBUILD index 037dcde9fc..b8a4c7ad92 100644 --- a/testing/gdal/APKBUILD +++ b/testing/gdal/APKBUILD @@ -17,8 +17,9 @@ builddir="$srcdir/$pkgname-$pkgver" build() { cd "$builddir" - ./configure --prefix=/usr || return 1 - make || return 1 + ./configure --prefix=/usr \ + --with-curl=/usr/bin/curl-config + make cd swig/python python2 setup.py build @@ -27,7 +28,7 @@ build() { package() { cd "$builddir" - make DESTDIR="$pkgdir" install || return 1 + make DESTDIR="$pkgdir" install chmod -x "$pkgdir"/usr/include/*.h } @@ -35,7 +36,7 @@ py() { pkgdesc="$pkgname (python bindings)" cd "$builddir"/swig/python - python2 setup.py install --prefix=/usr --root="$subpkgdir" || return 1 + python2 setup.py install --prefix=/usr --root="$subpkgdir" chmod a+x scripts/* install -d "$subpkgdir"/usr/bin -- cgit v1.2.3