aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2016-06-12 20:55:05 +0200
committerJakub Jirutka <jakub@jirutka.cz>2016-06-12 20:56:31 +0200
commita82871c15f42426b4d86d73f499fe8a0b49ff255 (patch)
treec5cd404b175f38d0b49c6311ea9522540668be47 /testing
parentc0309abbb760c6627f15bfc8ddffa3107b86a195 (diff)
downloadaports-a82871c15f42426b4d86d73f499fe8a0b49ff255.tar.bz2
aports-a82871c15f42426b4d86d73f499fe8a0b49ff255.tar.xz
testing/gdal: improve abuild
Diffstat (limited to 'testing')
-rw-r--r--testing/gdal/APKBUILD42
1 files changed, 23 insertions, 19 deletions
diff --git a/testing/gdal/APKBUILD b/testing/gdal/APKBUILD
index 5c343d189b..0187f2db60 100644
--- a/testing/gdal/APKBUILD
+++ b/testing/gdal/APKBUILD
@@ -2,40 +2,44 @@
# Maintainer: Trevor R.H. Clarke <trevor@notcows.com>
pkgname=gdal
pkgver=2.1.0
-pkgrel=0
-pkgdesc="a translator library for raster and vector geospatial data formats"
+pkgrel=1
+pkgdesc="A translator library for raster and vector geospatial data formats"
url="http://gdal.org"
arch="x86_64"
license="MIT"
depends=""
depends_dev="gdal"
makedepends="giflib-dev jpeg-dev libjpeg-turbo-dev libpng-dev tiff-dev zlib-dev swig python-dev"
-install=""
subpackages="$pkgname-dev py-$pkgname:py"
source="http://download.osgeo.org/$pkgname/$pkgver/$pkgname-$pkgver.tar.xz"
-
-_builddir="$srcdir"/$pkgname-$pkgver
+builddir="$srcdir/$pkgname-$pkgver"
build() {
- cd "$_builddir"
- ./configure --prefix=/usr
+ cd "$builddir"
+
+ ./configure --prefix=/usr || return 1
make || return 1
-}
-py() {
- pkgdesc="$pkgname python bindings"
- mkdir -p "$subpkgdir"/usr/lib
- mkdir -p "$subpkgdir"/usr/bin
- cd "$_builddir"/swig/python
- python setup.py build || return 1
- python setup.py install --prefix=/usr --root="$subpkgdir"
- chmod a+x scripts/*
- install -m755 scripts/* $subpkgdir/usr/bin/
+ cd swig/python
+ python setup.py build
}
package() {
- cd "$_builddir"
- make DESTDIR="${pkgdir}" install || return 1
+ cd "$builddir"
+
+ make DESTDIR="$pkgdir" install || return 1
+ chmod -x "$pkgdir"/usr/include/*.h
+}
+
+py() {
+ pkgdesc="$pkgname (python bindings)"
+
+ cd "$builddir"/swig/python
+ python setup.py install --prefix=/usr --root="$subpkgdir" || return 1
+
+ chmod a+x scripts/*
+ install -d "$subpkgdir"/usr/bin
+ install -m755 scripts/*.py "$subpkgdir"/usr/bin/
}
md5sums="1a6e720597efd84661869fb66b6986e4 gdal-2.1.0.tar.xz"