# Contributor: Bradley J Chambers # Maintainer: Bradley J Chambers pkgname=libgeotiff pkgver=1.5.1 pkgrel=0 pkgdesc="TIFF based interchange format for georeferenced raster imagery." url="https://trac.osgeo.org/geotiff" arch="all !x86 !armhf !armv7" license="Public-Domain" 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() { ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --disable-static make } package() { make DESTDIR="$pkgdir" install } 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"