diff options
author | Holger Jaekel <holger.jaekel@gmx.de> | 2019-06-16 14:18:30 +0200 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-06-18 10:02:38 -0300 |
commit | 72e96ef42b98c4fcc621208ad14a2e36900e4bfe (patch) | |
tree | 337e1b4cc16c63613d570e5d5c17c90af8d378e0 /testing/libgeotiff | |
parent | 809f32f81f14456ac3dcced8de78dbd8fad20b6a (diff) | |
download | aports-72e96ef42b98c4fcc621208ad14a2e36900e4bfe.tar.bz2 aports-72e96ef42b98c4fcc621208ad14a2e36900e4bfe.tar.xz |
testing/libgeotiff: upgrade to 1.5.1
Diffstat (limited to 'testing/libgeotiff')
-rw-r--r-- | testing/libgeotiff/APKBUILD | 46 |
1 files changed, 32 insertions, 14 deletions
diff --git a/testing/libgeotiff/APKBUILD b/testing/libgeotiff/APKBUILD index 432a8cecf6..9ba705a7ed 100644 --- a/testing/libgeotiff/APKBUILD +++ b/testing/libgeotiff/APKBUILD @@ -1,24 +1,26 @@ # Contributor: Bradley J Chambers <brad.chambers@gmail.com> # Maintainer: Bradley J Chambers <brad.chambers@gmail.com> pkgname=libgeotiff -pkgver=1.4.2 -pkgrel=2 +pkgver=1.5.1 +pkgrel=0 pkgdesc="TIFF based interchange format for georeferenced raster imagery." url="https://trac.osgeo.org/geotiff" -arch="all" +arch="all !x86 !armhf !armv7" license="Public-Domain" -options="!check" -makedepends="autoconf automake libtool tiff-dev proj4-dev" -subpackages="$pkgname-dev $pkgname-doc" -source="$pkgname-$pkgver.tar.gz::http://download.osgeo.org/geotiff/libgeotiff/$pkgname-$pkgver.tar.gz" - -prepare() { - default_prepare - ./autogen.sh -} +makedepends=" + autoconf + automake + libtool + tiff-dev + proj-dev + " +subpackages=" + $pkgname-dev + $pkgname-doc + " +source="http://download.osgeo.org/geotiff/libgeotiff/$pkgname-$pkgver.tar.gz" build() { - CFLAGS="$CFLAGS -DACCEPT_USE_OF_DEPRECATED_PROJ_API_H=1" \ ./configure \ --build=$CBUILD \ --host=$CHOST \ @@ -31,4 +33,20 @@ package() { make DESTDIR="$pkgdir" install } -sha512sums="059c6e05eb0c47f17b102c7217a2e1636e76d622c4d1bdcf0bd89fb3505f3130bffa881e21c73cfd2ca0d6863b81322f85784658ba3539b53b63c3a8f38d1deb libgeotiff-1.4.2.tar.gz" +check() { + # generate an example GeoTIFF + bin/makegeo + + # list-out the GeoTIFF tags and keys associated with the generated GeoTIFF + bin/listgeo newgeo.tif > metadata.txt + + # check if some tags are extracted correctly + grep "Ellipsoid: 7016/Everest 1830 (1967 Definition) (6377298.56,6356097.55)" metadata.txt + grep "Projection Linear Units: User-Defined (1.000000m)" metadata.txt + grep "Upper Left (130d 0' 0.00\"E, 32d 0' 0.00\"N)" metadata.txt + grep "Lower Left (130d 0' 0.00\"E, 12d 0' 0.00\"N)" metadata.txt + grep "Upper Right (150d 0' 0.00\"E, 32d 0' 0.00\"N)" metadata.txt + grep "Lower Right (150d 0' 0.00\"E, 12d 0' 0.00\"N)" metadata.txt +} + +sha512sums="6599ec89dd39d975ba389584778dd084ded628d3304b302e3af25bb7d156cf583c56b52f1c89c253b041df43f99d6893190ee1556398dab1ba044f12ef8b8dc1 libgeotiff-1.5.1.tar.gz" |